-
1
- #1
Can anyone tell me what is wrong with this code?
------------------------
Private Sub Form_Load()
Dim db As Database
Dim rsControl As Recordset
Dim strDownload As String
Set db = CurrentDb
Set rsControl = db.OpenRecordset("Control"
strDownload = rsControl("LastDownload"
MsgBox (strDownload)
End Sub
------------------------
The line "Set rsControl = db.OpenRecordset("Control"" gives an error code 13, Type Mismatch.
"Control" is a table containing just one record.
I am using Access XP and the database is in Access 2000 format.
Thank you
------------------------
Private Sub Form_Load()
Dim db As Database
Dim rsControl As Recordset
Dim strDownload As String
Set db = CurrentDb
Set rsControl = db.OpenRecordset("Control"
strDownload = rsControl("LastDownload"
MsgBox (strDownload)
End Sub
------------------------
The line "Set rsControl = db.OpenRecordset("Control"" gives an error code 13, Type Mismatch.
"Control" is a table containing just one record.
I am using Access XP and the database is in Access 2000 format.
Thank you