C
Cade Perkins
I am able to successfully convert an Access97 database to Access2000, but
not directly to Access2003. It appears that 2000 and 2003 use the same Jet
database version, but when I open an Access2000 database in Access2003, it
says that it is an older version and must be converted to Access2003 before
I can use it fully. I would like to create an Access2003 directly using JRO
and/or ADO without the need and hassle of opening it in Access to do the
conversion.
Interestingly, I am able to successfully open an Access2003 (created within
Access2003 and not programmatically) using ADO Jet provider and it reports
it is a normal Jet 4.0 database. To Jet, it appears that they are the same
version. Is there anyway to have Jet distinguish between them?
I have the latest MDAC 2.8 and Jet 4.0 SP8 installed.
Thanks, Cade
Here's some sample VB code I've used to do the conversion:
Const JETDBENGINETYPE_JET4X = 5
Dim ConnectionString As String
Dim NewConnectionString As String
ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='Access97Path'"
NewConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='NewPath';Engine Type = " &
JETDBENGINETYPE_JET4X
JRO.JetEngine.CompactDatabase(ConnectionString, NewConnectionString)
not directly to Access2003. It appears that 2000 and 2003 use the same Jet
database version, but when I open an Access2000 database in Access2003, it
says that it is an older version and must be converted to Access2003 before
I can use it fully. I would like to create an Access2003 directly using JRO
and/or ADO without the need and hassle of opening it in Access to do the
conversion.
Interestingly, I am able to successfully open an Access2003 (created within
Access2003 and not programmatically) using ADO Jet provider and it reports
it is a normal Jet 4.0 database. To Jet, it appears that they are the same
version. Is there anyway to have Jet distinguish between them?
I have the latest MDAC 2.8 and Jet 4.0 SP8 installed.
Thanks, Cade
Here's some sample VB code I've used to do the conversion:
Const JETDBENGINETYPE_JET4X = 5
Dim ConnectionString As String
Dim NewConnectionString As String
ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='Access97Path'"
NewConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='NewPath';Engine Type = " &
JETDBENGINETYPE_JET4X
JRO.JetEngine.CompactDatabase(ConnectionString, NewConnectionString)