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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

declare a database

Status
Not open for further replies.

newprogamer

Programmer
Sep 22, 2004
107
US
Hello,

I am trying to make changes to some very old code. i am opening the program using VB6. I tried to run the code and receive the following error message. I don't see anything wrong. Any suggestions would be appreciated.


Dim dbStat as Database
Compile error: User-defined type not defined

Thanks,
New Programmer
 
You need to create a reference to

Microsoft DAO 3.x Object Library
 
And make sure that if this is Access db then it's version will still be readable for DAO.
 
Thanks, I added Microsoft DAO 3.6 Object Library and it works. It does use an Access database. How do I ensure it will be readly for DAO?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top