Dim a As DatabaseSet a = OpenDatabase(App.Path & "\data.mdb")set rs = a.OpenRecordset("select * from data")这几句话是什么意思~~?尤其是set rs = a.OpenRecordset("select * from data")这句话是什么意思?
參考答案:Dim a As Database
定义一个数据库对象
Set a = OpenDatabase(App.Path & "\data.mdb")
打开程序目录下data.mdb
set rs = a.OpenRecordset("select * from data")
取得data.mdb数据库中的data表中的所有记录