Hi,
I have used the following declaration dozens of times:
Dim db As Database
Now, I get the following compile error:
"User-defined type not defined"
Any ideas?
Is Access corrupted?
Thanks,
John
When I've encountered this problem in the past, it has always been a problem in referencing the DAO Object library. If you have both DAO and ADO object libraries referenced, check the order. Try moving the DAO object library so that it is higher in the list than the ADO Object Library. The ordewr in the list determines the priority of the Library.
Open a code module in design mode, select Tools - References ... then click on then checkbox next to "Microsoft DAO 3.6 Object Library" .. and close the menus, and the module... you should be explicit when declaring your Database and Recordset variables....
Thanks to all who helped.
The problem was that some how, the DOA 3.6 reference was unchecked in the library. I checked it and moved it to its proper place. That did it.
Thanks again,
John
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.