Reference to Activate Variable as Database (1 Viewer)

JithuAccess

Member
Local time
Today, 08:01
Joined
Mar 3, 2020
Messages
297
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
 

Isaac

Lifelong Learner
Local time
Today, 07:01
Joined
Mar 14, 2017
Messages
8,774
I'd leave the default references (don't add anything), and use DAO.Database, DAO.Recordset, etc
 

Minty

AWF VIP
Local time
Today, 15:01
Joined
Jul 26, 2013
Messages
10,367
That DAO reference has been depreciated. Use the Mircosift Office Access database engine objects instead ;
1612387180940.png
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 10:01
Joined
Feb 19, 2002
Messages
43,198
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.
 

Isaac

Lifelong Learner
Local time
Today, 07:01
Joined
Mar 14, 2017
Messages
8,774
3 people now agreeing with my original post - flattering!
 

Users who are viewing this thread

Top Bottom