"user-defined type not defined" error in one project but not anoth

"user-defined type not defined" error in one project but not anoth

Post by R0tGZX » Mon, 10 Jan 2005 10:27:02


I have 2 Visual Basic Projects with the same line of code, (Dim wrkJet As
Workspace) however, one project works fine and the other produces a
"user-defined type not defined" error.

I know that the good project includes the following line:
Reference=*\G{00025E01-0000-0000-C000-000000000046}#4.0#0#..\..\Common
Files\Microsoft Shared\DAO\DAO350.DLL#Microsoft DAO 3.51 Object Library

The bad project does not include this line.

What did I unknowingly do the first time to correctly get the reference in
my .vbp file?

Short of manually adding this to the 'bad' project, how can I get that line
of code added to the other project?

Thanks in advance for any suggestions,
Greg
 
 
 

"user-defined type not defined" error in one project but not anoth

Post by Douglas J. » Mon, 10 Jan 2005 21:40:53

Select Project | References on the menu bar, scroll through the list of
available references until you find the Microsoft DAO 3.51 Object Library
listing, select it then close the dialog.

--
Doug Steele, Microsoft Access MVP
http://www.yqcomputer.com/
(no e-mails, please!)