?
Solved

Missing Reference - Converting from 97 to 2000, Excel into Access

Posted on 2002-05-13
7
Medium Priority
?
170 Views
Last Modified: 2010-05-02
I have a VB program that exports Excel data into an Access database.
Our office just upgraded to Windows 2000 (we had 97).  The database converted perfectly - everything works fine.  However, I am having a problem with the export program (at least, I think that's what the problem is).
When I try to run it, it gives me a message something like "can't find object or library".  I did some research and found out that I am missing a DAO 2.5/3.5 Compatibility Library.  My question is, can I get this library from somewhere?  If I did, would that solve this problem?  Or should I update my code?  If I have to update my code, how do I know which lines are referencing DAO?  I am a relatively inexperienced VB programmer, so any suggestions will be helpful.  Thanks!
0
Comment
Question by:Mikayla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7007586
Yes, you could install mdac software fro Microsoft.
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 800 total points
ID: 7007588
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7007589
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:mani_m_in
ID: 7007864
Hi,
  MS-Access 2000 doesnot support the DAO 2.5/3.5 Compatibility Library. It supports only DAO 4.0 Compatibility Library. Try to update ur VB Code. You have to modify the code while Opening a Connecion Object. Change the DAO version 3.5 to 4.0 while opening a Connection object. I think this will solve ur problem.
0
 

Author Comment

by:Mikayla
ID: 7008545
That worked!  Thank you so much...I'll be able to sleep much better tonight!!
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7008570
mani_m_in right in the first part, wrong in the second. You are confusing the OLEDB provider 3.51 and 4.0 with the DAO library. The correct version for Access 2000 of the DAO library is 3.6 rather than 3.5 or lower.

To resolve the issue you should be able to uncheck the references to the 2.5/3.5 compatibility library and check the 3.6 library instead.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7008582
Thanks for "A" grade.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question