主题:记录集(-1)(加分)
Set CNN = Nothing
StrPath = "Provider=sqloledb;Server=192.168.1.17;Database=hyjt;Uid=sa;Pwd=hy1254*****;"
CNN.Open StrPath
StrSql = "SELECT * FROM t_item"
RST.Open StrSql, CNN
K = RST.RecordCount
t_item 里面有好多记录,为什么K值总提示“-1”呢?
StrPath = "Provider=sqloledb;Server=192.168.1.17;Database=hyjt;Uid=sa;Pwd=hy1254*****;"
CNN.Open StrPath
StrSql = "SELECT * FROM t_item"
RST.Open StrSql, CNN
K = RST.RecordCount
t_item 里面有好多记录,为什么K值总提示“-1”呢?