Dim item as object question

GregSmith

Registered User.
Local time
Today, 13:22
Joined
Feb 22, 2002
Messages
126
When I am in the code base and type in Dim item as (a box pops up) and I can select the objects from within it. How do I add to this box?

I am trying to follow an example on treeview and they have dim db as database. In my need access database that I am working on does not cantain the object database thus I get an error.

Any ideas on how to add to the list?

Thanks, Greg
 
Data Access Objects (DAO) is the default data access method for Access 97. You are obviously on a higher versions A2000+ and therefore have ActiveX Data Objects (ADO) as your default . Therefore you need to set a reference to the DAO library.

Open a module
Goto Tools - > References
Select Microsoft DAO Library 3.6
 

Users who are viewing this thread

Back
Top Bottom