toughcoder
10-21-2004, 09:58 PM
Greetings every1,
I'm having Office XP, and used Access to create a DB. Afterwards I used the following code to open it.
Dim DB As Database
Dim RS As Recordset
Private Sub Form_Load()
Set DB = OpenDatabase("C:\db1.mdb")
Set RS = DB.OpenRecordset("table1")
Text1.Text = RS.Fields(0)
End Sub
It gives the error "Unrecognized database format". Why is this. If I create a DB from within VB's Visual Data Manager, it works fine. What shld i do. My OS is Win2k...
I'm having Office XP, and used Access to create a DB. Afterwards I used the following code to open it.
Dim DB As Database
Dim RS As Recordset
Private Sub Form_Load()
Set DB = OpenDatabase("C:\db1.mdb")
Set RS = DB.OpenRecordset("table1")
Text1.Text = RS.Fields(0)
End Sub
It gives the error "Unrecognized database format". Why is this. If I create a DB from within VB's Visual Data Manager, it works fine. What shld i do. My OS is Win2k...