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

Dim as Database returning an error

Status
Not open for further replies.

mdweezer

Technical User
Jun 15, 2004
56
US
Using a simple

Dim foo as Database

is for some reason returning the following error:

User defined type not defined

it however was working, what would trigger such an error?

Thanks
 
Your default data model for that application must be ADO. Therefore, to use the DAO objects, you need to include a reference to the latest DAO objects.

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Yeah, go to the References window - under the VB window - and checkmark your Microsoft DAO.
 
And don't forget to properly define your recordsets:
Dim rs As DAO.RecordSet

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top