Have a VB5 program that used to access an Access97 database fine with the data control on a form as follows:
MSC1.Data1.RecordsetType = vbRSTypeSnapShot
MSC1.Data1.DatabaseName = "f:\admin\test.mdb"
MSC1.Data1.RecordSource = "MSC" 'MSC is a query
MSC1.Data1.Refresh
The database was converted to Access2000 and then the program gave the "unrecognized database format" error.
I read through various posts about it (not completely understanding them) and determined I should try the following code change:
Set daoDB36 = DBEngine(0).OpenDatabase("f:\admin\test.mdb")
Set rs = daoDB36.OpenRecordset("MSC")
Set MSC1.Data1.Recordset = rs
MSC1.Data1.Refresh
I then got "could not find installable ISAM" error on the "data1.refresh" line.
Not sure how to fix this. I am using Access XP on the PC running the program.
I guess I'm asking if it possible to access Access2000 databases from VB5 (data control on form) on a machine running AccessXP? If so, what VB5 code changes do I need?
Thank You
MSC1.Data1.RecordsetType = vbRSTypeSnapShot
MSC1.Data1.DatabaseName = "f:\admin\test.mdb"
MSC1.Data1.RecordSource = "MSC" 'MSC is a query
MSC1.Data1.Refresh
The database was converted to Access2000 and then the program gave the "unrecognized database format" error.
I read through various posts about it (not completely understanding them) and determined I should try the following code change:
Set daoDB36 = DBEngine(0).OpenDatabase("f:\admin\test.mdb")
Set rs = daoDB36.OpenRecordset("MSC")
Set MSC1.Data1.Recordset = rs
MSC1.Data1.Refresh
I then got "could not find installable ISAM" error on the "data1.refresh" line.
Not sure how to fix this. I am using Access XP on the PC running the program.
I guess I'm asking if it possible to access Access2000 databases from VB5 (data control on form) on a machine running AccessXP? If so, what VB5 code changes do I need?
Thank You