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

Simple compile error

Status
Not open for further replies.

dt2demar

Technical User
Nov 20, 2000
32
CA
Hello,

When I try to run my program the compile error I get is:

user-defined type not defined

The highlighted part of the VBcode is:

Dim dbs As Database

What is the problem here? This syntax worked on a form in a different database.

thanks in advance.

DTD
 
Repair the database, this should fix the problem.

HAH
 
Repairing the database didn't work. Same error.

Any other ideas?
 
Figured it out:

Create reference to DAO and move it into third position of references list.

VBA window's menu
<Tools>;<References>

Thanks anyways!!

DTD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top