JureVI
Jun 23rd, 2000, 07:08 PM
Hi
I'm making for the first time an application, where i would like to use database, but I have a lot of problems.
First problem is, that when I write this:
Dim DB As Database
Dim RS As Recordset
Private Sub Form_Load()
Set DB = OpenDatabase(App.Path & "\generali.mdb")
Set RS = DB.OpenRecordset("Generali")
End Sub
I run the application, but there is a note saying "Type mismatch" and the line "Set RS = DB.OpenRecordset("Generali")" becomes yellow. What's wrong?
I would like also that DataCombo would display in a list the first field from a database.
Thanks.
Jure
I'm making for the first time an application, where i would like to use database, but I have a lot of problems.
First problem is, that when I write this:
Dim DB As Database
Dim RS As Recordset
Private Sub Form_Load()
Set DB = OpenDatabase(App.Path & "\generali.mdb")
Set RS = DB.OpenRecordset("Generali")
End Sub
I run the application, but there is a note saying "Type mismatch" and the line "Set RS = DB.OpenRecordset("Generali")" becomes yellow. What's wrong?
I would like also that DataCombo would display in a list the first field from a database.
Thanks.
Jure