I am using the below code in a module to access a table. How can I do this using ADO.
The database is already open. I can not declare the ADO as a database.
Dim MYdb As Database
Dim MYrs As Recordset
Set MYdb = CurrentDb
Set MYrs = MYdb.OpenRecordset("select * from UploadInventory", dbOpenDynaset)
Please help,
James
The database is already open. I can not declare the ADO as a database.
Dim MYdb As Database
Dim MYrs As Recordset
Set MYdb = CurrentDb
Set MYrs = MYdb.OpenRecordset("select * from UploadInventory", dbOpenDynaset)
Please help,
James