Hello,
Does anybody know how to convert an access 2000 database to a prior version and access (example access 97). through VBA
access provides a method but it doesn't seem to work correctly.
it goes something like this
'------------------------------------------------------
'this will compact the your current database.
DBEngine.CompactDatabase"olddbname.mdb","newdbname.mdb",,,vbversion30
'-----------------------------------------------------
'then you will have to delete the olddatabase
If Dir ("database path\olddbname.mdb"<>"" then
Kill "database path\olddbname.mdb"
'----------------------------------------------
'Rename the new database back to the old database name.
Name "database path\dbname.mdb" As "database path\dbname.mdb"
my problem is that MS gives the option to use a dbverison30
in place of the [option] var bit it does NOT convert the database
DBEngine.CompactDatabase olddb, newdb, locale, options, password
Does anybody know how to convert an access 2000 database to a prior version and access (example access 97). through VBA
access provides a method but it doesn't seem to work correctly.
it goes something like this
'------------------------------------------------------
'this will compact the your current database.
DBEngine.CompactDatabase"olddbname.mdb","newdbname.mdb",,,vbversion30
'-----------------------------------------------------
'then you will have to delete the olddatabase
If Dir ("database path\olddbname.mdb"<>"" then
Kill "database path\olddbname.mdb"
'----------------------------------------------
'Rename the new database back to the old database name.
Name "database path\dbname.mdb" As "database path\dbname.mdb"
my problem is that MS gives the option to use a dbverison30
in place of the [option] var bit it does NOT convert the database
DBEngine.CompactDatabase olddb, newdb, locale, options, password