在ADO中,FIND方法的与DAO中有所不同,后者可用Nomatch属性来判断,而前者在用过FIND方法后,如果找到要查询的记录,则定位于符合条件的第一条记录;如果没有找到符合条件的记录,则将记录指针定位于记录集中最后一条记录的后面,即你可用 rs.eof 来判断查询结果。例如:
if rs.eof then
msgbox "There is no this record!"
else
msgbox "The record's position is " & rs.AbsolutePosition
endif
if rs.eof then
msgbox "There is no this record!"
else
msgbox "The record's position is " & rs.AbsolutePosition
endif
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货