Dim rs as New ADODB.RecordSet
Dim strSql as string
strSql="select A from 表 where B like '%" & "abc" & "%'" 'ADO模糊匹配用%
rs.open strSql, currentproject.connection, 1, 3'打开记录
do while not rs.eof '循环查找到的记录
debug.print rs("A") '打印到立即窗体
rs.movenext
loop
rs.close