Northwind example does not work? (!)

C

chris.english

I've been having some trouble opening a database object with A2K and
couldn't work out why (tried Dim db As DAO.Database and Dim db As
Database). I just kept getting 'Compile error: User defined type not
defined'

Database object user defined? Hmmm so I copied a northwind example
(Function HideStartupForm()) and it does the same

Please help! It's driving me nuts

Chris E
 
J

John Vinson

I've been having some trouble opening a database object with A2K and
couldn't work out why (tried Dim db As DAO.Database and Dim db As
Database). I just kept getting 'Compile error: User defined type not
defined'

Access 200x default to the newer ADO object model - the DAO library is
not selected by default.

Open the VBA editor and select Tools... References. If you're not
using ADOX, uncheck the Microsoft ActiveX Data Objects library
reference; in any case scroll down to Microsoft DAO Object Library
x.xx (highest version, usually 3.51 or 3.6) and check it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top