?
Solved

Converting Access97 to Access2000 with DAO3.6 using VB6

Posted on 2003-03-11
7
Medium Priority
?
607 Views
Last Modified: 2007-11-27
I currently have an program which is used on over 200 sites. This program was using Access97 which has performed perfectly, I have decided to upgrade my DBMS to Access2000 and need to know how to upgrade the existing databases from within vb.I am using DAO 3.6.
Is this the code to convert the existing MDB's ?

private sub Convert()
Dim DbCompact As New DBEngine
DBEngine.CompactDatabase "C:\Status1.mdb", , "C:\Status.mdb", dbLangGeneral, dbversion30
end sub

When I execute this code and open the mdb in Access2000 I am still prompted "Convert Database" ,so i persume that the database was not converted

I must be doing somethin wrong !
Any Ideas????

0
Comment
Question by:turloughm
[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 43

Expert Comment

by:TimCottee
ID: 8110719
Close, dbVersion30 creates a DAO 3/3.5 compatible database (i.e., Access 97) use dbVersion40 for DAO 3.6 compatible or access 2000.
0
 
LVL 2

Expert Comment

by:manchanda
ID: 8111402
try this command:


application.ConvertAccessProject"db8.mdb","db9.mdb",acFileFormatAccess2000
0
 

Author Comment

by:turloughm
ID: 8111773
What references do I use with application.ConvertAccessProject"db8.mdb","db9.mdb",acFileFormatAccess2000

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 2

Expert Comment

by:manchanda
ID: 8113144
actually i tried this way:

Private Sub Command1_Click()
Dim app As Object
'Const acFileFormatAccess2002 = 10
Set app = CreateObject("Access.Application.10")
app.ConvertAccessProject "c:\db9.mdb", "c:\db11.mdb", 10
End Sub
0
 

Expert Comment

by:CleanupPing
ID: 9056454
turloughm:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 9097048
turloughm, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 9184933
Per Recommendation

kb
Experts Exchange Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

719 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