dim str as string
str=""
str="字段名='" & text1 & "'"
recordset.find str
if recordset.eof then msgbox "没有符合条件的" else msgbox "ok"
str=""
str="字段名='" & text1 & "'"
recordset.find str
if recordset.eof then msgbox "没有符合条件的" else msgbox "ok"
ADODC1.recordset.find str
比如默认向下,如果连续调用就有可能漏掉结果
set datagrid1.datasource =rs
datagrid1.refresh