难道 if rs.eof and rs.bof then 和 if rs.bof and rs.eof then 不相等?!
我有一段代码如下:
rs.open strsql,strcn
if rs.bof and rs.eof then
A
else
B
end if
当我的 rs.recordcount<>0 时却执行了A处的代码!
而我将判断改为:
if rs.eof and rs.bof then
A
else
B
end if
时,相同条件下却执行的是B处的代码!
难道 if rs.eof and rs.bof then 和 if rs.bof and rs.eof then 不相等?!
微软在MSDN98中不是提到可以用判断rs.eof 和 rs.bof 是否指向相同来判断结果集是否为空吗?