Reference to Activate Variable as Database

JithuAccess

Member
Local time
Today, 16:44
Joined
Mar 3, 2020
Messages
325
Hello Guys,

Which Reference I should Activate to view Database and Recordset properties in Code Window. When I am trying to declare the variables I am getting like this:

1612386402889.png


Thanks
 
I'd leave the default references (don't add anything), and use DAO.Database, DAO.Recordset, etc
 
That DAO reference has been depreciated. Use the Mircosift Office Access database engine objects instead ;
1612387180940.png
 
The current version of Access defaults to DAO (and I hope it stays that way) I think A2K defaulted to ADO and that caused enormous problems.

As the others suggested, disambiguate all DAO objects to avoid current and future conflicts. ADO and DAO have some overlapping objects and so not disambiguating the Dim statement will result in the interpreter using the first library defined that has the object. So if you have a reference to ADO in addition to the default reference, which ever is first in the reference list will prevail so just avoid the conflict from the get go.
 
3 people now agreeing with my original post - flattering!
 

Users who are viewing this thread

Back
Top Bottom