I have a VB application which was connected to a Access 97 database. I have recently moved from Office 97 to Office XP (Am now using Access in Office XP). When I run my VB programme I get an error message "Unrecognized database format 'C:/db1tables.mdb'" I get this error message prompted twice. Do I need to change the connections? This is what I have:
Dim db As ADODB.Connection
Set db = New ADODB.Connection
db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\db1tables.mdb;Persist Security Info=False"
db.Open
db.Execute ("INSERT INTO table1(opcode, Section_test)VALUES('" & intNewHighest & "', ' ')")
Anyone know how to fix this error.
Dim db As ADODB.Connection
Set db = New ADODB.Connection
db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\db1tables.mdb;Persist Security Info=False"
db.Open
db.Execute ("INSERT INTO table1(opcode, Section_test)VALUES('" & intNewHighest & "', ' ')")
Anyone know how to fix this error.