通常在SQL中通过select * form table where abc='l'的方式来进行有效的查询,而在access数据库中怎样通过程序的方式仿select 的方式呢,而不是在recordset中用find函数来查询呢
谢谢!

解决方案 »

  1.   

    你寫SQL語句直接從表裏查就是了。
      

  2.   

    dim cn as new adodb.connection
      dim rs as new adodb.recordset
       cn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & App.Path & "\db.mdb;Uid=Admin;Pwd=;"
        rs.Open "select * from table1 where id =" & arrID , cn, 1, 3
        while not rs.eof
            debug.print rs(0)
            rs.movenext
        wend
     ..
    ..
    ..
    ..............
    可以照上面例子,用SQL语句进行查询。你是指这个吗?