DAO Connection

database

Registered User.
Local time
Today, 12:38
Joined
Jun 3, 2004
Messages
80
How do I establish a DAO connection to the Database?
 
database said:
How do I establish a DAO connection to the Database?
What are you trying to do? Are you trying to code this from within your database. If so

dim db as DAO.Database

set db = CurrentDb
 
I have tried doing that but it gives an error saying that User-defined type not defined... why is that so?






fzamora said:
What are you trying to do? Are you trying to code this from within your database. If so

dim db as DAO.Database

set db = CurrentDb
 
database said:
I have tried doing that but it gives an error saying that User-defined type not defined...

Open your VBA window and from the pulldown menu select Tools- References. Scroll down Microsoft DAO 3.x Object Library and check the box next to it.

See the FAQ on this site for a detailed explanation.

Regards,
Tim
 
Well, It is currently set to Microsoft DAO 2.1 Library... does it make a difference?





pono1 said:
Open your VBA window and from the pulldown menu select Tools- References. Scroll down Microsoft DAO 3.x Object Library and check the box next to it.

See the FAQ on this site for a detailed explanation.

Regards,
Tim
 
That could be it. What version of Access are you running?
 
are you sure it's DAO 2.1 and not ADO 2.1?
 
you know MS and their rediculous obession with acronyms. Especially ones with the same letters in different order. oh wait.. I said MS.. ;)
 
Hey thanks all of you guys... I WAS confusing between DAO and ADO...

:)
 

Users who are viewing this thread

Back
Top Bottom