I tried to set "dim db as database" and it told me that database was an undefined variable. Anyone have any ideas why VB isn't recognizing it?
thanks
Printable View
I tried to set "dim db as database" and it told me that database was an undefined variable. Anyone have any ideas why VB isn't recognizing it?
thanks
Yep.. actually its kind of easy if you know the answer.. Include DAO???.dll in your project ( Menu Project - References - probably MSDAO350.dll with VB6. Normally it's in the list)
That's the dll you need to have access to databases.
Hope it helps!
Crazy D
From the Visual Basic Project menu, select reference menu item and set a reference to Microsoft DAO 3.5(or the version you have) library. Then you won't get the error.