上课想打瞌睡怎么办:如何用VB编写这样的recordset.find 语句
来源:百度文库 编辑:中科新闻网 时间:2024/09/24 09:35:21
我定义mytb作为一个变量,想在当前recordset中搜索字段class 值为mytb 的记录.程序该如何编?(假设mytb为第二册第一科,第二册第二课等等)
if not recordset.bof() then recordset.movefirst
recordset.find "class='" & mytb &"'"
if not recordset.eof() then
'找到了
end if
'可能不只一个