Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB6 and Access 2002

Posted on 2002-05-05
4
Medium Priority
?
156 Views
Last Modified: 2010-05-02
I have an app that works fine from VB4 and uses an Access 97 database. I upgraded to Office XP and I get an error "Unrecognized database format..." I copied the code into a new form to test and get the same thing.

Is there anything to do with Access 2002 databases in VB?
0
Comment
Question by:rahlf192
4 Comments
 
LVL 4

Expert Comment

by:mcoop
ID: 6990628
I don't have OfficeXP - but my guess is that you will have to open the project-references, and update the libraries to point to a new 'Access 2002' class.  (It may be called Access 10 or something else) - but you get the idea.

The recompile, and if all the objects are structured the same in XP as they were under 97/2000 then you should be on your way.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 150 total points
ID: 6990694
DAO or ADO?

Take a look at the following article on MSDN:
PRB: Error "Unrecognized Database Format" When You Upgrade to Access 2000 or 2002 (Q238401)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q238401&SD=MSKB&

Also, please maintain your open questions:
Questions Asked 36
Last 10 Grades Given A A B B B B A A A A  
Question Grading Record 25 Answers Graded / 25 Answers Received

Anthony
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6990738
In VB6, we need to use DAO 3.60 or ADO 2.0. Can you use them with VB4?
0
 
LVL 1

Expert Comment

by:ramani_gr
ID: 6991070
When you install the Office XP, the DAO version must have been changed to a new version.  It won't read the old format.

Open the Access 97 database in Access 2002.  It would ask you to convert to the Access 2002 format.  Save to a new Access format.  And rename the Access97 database file to some old.  And rename the Access2002 new version database to the actual file name.

Good luck.
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

963 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