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

Dim db As Database Causes error Can not file project or Library 1

Status
Not open for further replies.

Junior1544

Technical User
Apr 20, 2001
1,267
US
I'm trying to edit a database that was given to me from many other past programmers.

When trying to run some code from a form, I'm getting the error
Can not file project or Library
on the line
Dim db As Database

DAO is listed and checked in the references, so What's causing this?

Thanks


Life is change. To deny change is to deny life.
 
I still think this is an issue with references. I would un-check and then recheck the DAO object library. Then, your code should be more explicit:
Code:
  Dim db As DAO.Database
Make sure you compile your code after modifying.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top