Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Error:User-defined type not defined. 1

Status
Not open for further replies.

SpectacledBear

Programmer
Mar 1, 2005
58
GB
The following line of code is identified when this message is displayed. Any suggestions?

Dim db As DAO.Database
 
Make sure you have a REFERENCE set to DAO (the highest version available). In a code module, choose TOOLS+REFERENCES and scroll to Microsoft DAO 3.x

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi, thanks for the tip, but when I try to do this, the refrences option is greyed out.
 
are you in the middle of running some code that's errored out or in the middle of debugging? You have to stop the code from running.

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top