CursorType,LockType问题?!j急
hhfh 2002-02-27 04:14:29 cnnString = "provider=microsoft.jet.oledb.4.0;data source=d:\code.mdb"
cnn1.Open cnnString
rst1.CursorType = adOpenDynamic
rst1.LockType = adLockOptimistic
rst1.Open "select * from 表", cnn1, , , adCmdText
text1.text=rst1.RecordCount
运行时,表里有五个记录,但text1显示为-1!why?
是不是CursorType,LockType设的有问题?!