ADO只支持单个字段的find,所以不能AND了。
可以这样使用
Adodc1.Recordset.filter="学号='" & xh & "' and 课程='" & Combo1.Text & "'"
if Adodc1.Recordset.eof then
  未找到
else
  未找到
endif

解决方案 »

  1.   

    Adodc1.Recordset.Find "学号='" & xh & "'" 
       And
    Adodc2.Recordset.Find "课程='" & Combo1.Text & "'"你试试吧!
      

  2.   

    to blp(★★★) :这样不行呀,只显示找到的那条记录了,而我想的是指针移动到找到的那条记录。
      

  3.   

    那没有办法了,只能自己从头找到尾了。
    或者你用DAO或RDO访问数据库好了,他们是支持的。
      

  4.   

    adodc2.recordset open "select 学号='" & xh & "' and 课程='" & Combo1.Text & "'"
      

  5.   

    adodc2.recordset=adodc1.recordset.clone
    adodc2.recordset.filter="学号='" & xh & "' and 课程='" & Combo1.Text & "'"
    if Adodc2.Recordset.eof then
      未找到
    else
      adodc1.recordset.book=adodc2.recordset.book
    endif