# DAO与ADO连结dbf时不同

Posted by wave on October 11, 1999 at 10:59:34:

In Reply to: VB与DBF的连线...如何做？？ posted by 小职员 on October 09, 1999 at 23:03:22:

: 请问大家..
: 您可不可以做VB与DBF的连接说明呢..
: 我不想改以前的系统资料..
: 只想改前端...>_<..
dao的作法
dim MyDb as Database
dim MyTb as Recordset
set MyDb = OpenDatabase("c:\test",False,False,"Dbase III;")
set MyTb = MyDb.OpenRecordset("select * from abc")
此范例在c:\test目录下开启abc.dbf档案
ado的作法
与access雷同只是将Provider参数修改,参数太长了,没法记得,在这里就省略,查查ADO之help.

Follow Ups: