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

Compile Error : Can't find project or library 1

Status
Not open for further replies.

Aido

Programmer
Mar 21, 2001
5
0
0
IE
I have a bit of a problem. I am new to Access 2000 programming. I keep getting this error from a Access 97 application. The code is as follows:

Public Function Init()

' Connect to SQL Server

Dim dbs As Database, qdf As QueryDef, rst As Recordset

The line highlighted by this error is the dim part. Do I have to include libraries or something... Please help!!!!
 
Yeah you need to include the reference which contain such things as the Database type and so on.
Think from memory it's a DAO something-or-other reference. Ben
+61 403 395 052
 
Thanks for that. I just found it now. There was a bad reference to the library, so I added it again. Sorted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top