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

VBA script to Convert access2000 db to Access 97 db

Status
Not open for further replies.

ajv

IS-IT--Management
Jul 10, 2001
9
US
I need to convert a access 2000 db to access 97 db in a production application. I would like to run a access macro or VBA code instead of going through the menu tree to do the following:

Input access 2000 db c:\mydb2000.mdb
Output access 97 db c:\mydb97.mdb

Thanks.
 
Try this code with Command Button.

Private Sub Command0_Click()
Dim acApp As Access.Application
Set acApp = CreateObject("Access.Application")
SendKeys PathOld & "C:\MyDirectory\"
SendKeys PathNew & "C:\MyDirectory\"
acApp.DoCmd.RunCommand acCmdConvertDatabase


End Sub
 
Thanks. I think acApp.DoCmd.RunCommand acCmdConvertDatabase
will convert access97 to access2000. I need to convert access2000 to access97.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top