»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 01-20-2004, 12:02 AM   #1 (permalink)
Guest
Guest
 
Posts: n/a
Kids Access 2000 problem opening .mdb

Tried opening an Access 2000 .mdb on Access 2000 and got this error prompt:

Compile error. in query expression ''. -(file info del'd)

I hit OK on that prompt, then a MS VB prompt popped up that said:

Run-time error '2467':
The expression you entered refers to an object that is closed or doesn't exist.


Options for that prompt are either <End> or <Debug> out.

When I get into debug, I do the Tools, References, and:

VB for Applications
MS Access 10.0 Object Library
OLE Automation
MS DAO 3.6 Object Library

are all checked and nothing shows as missing.

Same problem happens with OfficeXP.

Any ideas on getting this file to work? Thanks

  Reply With Quote
Old 01-21-2004, 07:46 PM   #2 (permalink)
Guest
Guest
 
Posts: n/a
Talk

w00t! Found it! Here's the fix:


Referencing the ADO Library

Quote:
ADO 2.8 Programmer's Guide
In a Visual Basic Application

To import the ADO libraries into a Microsoft Visual Basic application, you must set a reference in the Visual Basic project.

To set a reference to the ADO libraries in a Visual Basic project :
  • Create a new or open an existing Visual Basic project.
  • Click the Project menu item and then select References... from the drop-down menu panel.
  • From Available References, check the box for Microsoft ActiveX Data Objects n.n Library, where n.n stands for the latest version number. The Location field below should identify your choice as $installDir\msado15.dll, where $installDir stands for the path of the directory in which the ADO library has been installed.
  • If you intend to use ADO MD, repeat step 3 to select Microsoft ActiveX Data Objects (Multi-dimensional) n.n Library . The Location field should identify this choice as $installDir\msadomd.dll.
  • If you intend to use ADOX, repeat step 3 to select Microsoft ADO Ext. n.n for DDL and Security . The Location field should identify this choice as $installDir\msadox.dll.
  • Click OK to finish setting the references.
  Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:39 AM.