HI,
I was trying to create a form in VB connected to a
Access table.I used the below code to connect the form
to a Access table.
Private Sub Form_Load()
Dim db as Connection
set sb = new Connection
db.open "PROVIDER= Microsoft.Jet.OLEDB.3.51;Data source= c:\Data.mdb;"
.....
....
..
End Sub
I get an error in 'db.open' (line# 3 in above code) it works fine for some older
versions such as access 97 but it gives me an error when i try
connect with access2000.do any one know why i am getting this error. I even tried the Data control to connect but the same problem.
Error:
Run time error '-2147467259(80004005)':
unrecognized database format 'c:\Data.mdb',
Any help will be appreciated,
Thanks in Advance,
Ran
I was trying to create a form in VB connected to a
Access table.I used the below code to connect the form
to a Access table.
Private Sub Form_Load()
Dim db as Connection
set sb = new Connection
db.open "PROVIDER= Microsoft.Jet.OLEDB.3.51;Data source= c:\Data.mdb;"
.....
....
..
End Sub
I get an error in 'db.open' (line# 3 in above code) it works fine for some older
versions such as access 97 but it gives me an error when i try
connect with access2000.do any one know why i am getting this error. I even tried the Data control to connect but the same problem.
Error:
Run time error '-2147467259(80004005)':
unrecognized database format 'c:\Data.mdb',
Any help will be appreciated,
Thanks in Advance,
Ran