首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

同样是判断“表中有记录”的语句,请教这四句有什么区别没

2012-02-02 
同样是判断“表中有记录”的语句,请问这四句有什么区别没?①if rs.eof false then...②if not rs.eof then..

同样是判断“表中有记录”的语句,请问这四句有什么区别没?
① if rs.eof = false then...

② if not rs.eof then...

③ if not rs.eof and not rs.bof then...

④ if rs.recordCount <> 0 then...

[解决办法]
'移动记录指针
if not rs.bof then rs.moveprevious

if not rs.eof then rs.movenext

if rs.recordcount>0 then rs.movefirst

查询
Rs.Find "custid = " & Chr(39) & SchData & Chr(39)
If Not Rs.EOF Then FindCust = True

热点排行