Dim db_05, rs_05
Set db_05 = CreateObject("ADODB.Connection"
db_05.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Program Files\Access Pages\gap_db01.mdb"
Set rs_05=db_05.execute("SELECT * FROM dueWithin1Week"
rs_05.MoveFirst '<<PROBLEM
The above works fine if the record source being accessed has at least one record. If NULL, however, it doesen't work at all, so I'm trying to determine whether or not the record source is NULL.
If rs_05 <> NULL Then '(or If rs_05 <> ""
rs_05.MoveFirst
Else
MsgBox "Is Null"
End If
The above gives me a "Type mismatch" error on runnning. Does anyone know how to fix this? Thanks.
Set db_05 = CreateObject("ADODB.Connection"
db_05.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Program Files\Access Pages\gap_db01.mdb"
Set rs_05=db_05.execute("SELECT * FROM dueWithin1Week"
rs_05.MoveFirst '<<PROBLEM
The above works fine if the record source being accessed has at least one record. If NULL, however, it doesen't work at all, so I'm trying to determine whether or not the record source is NULL.
If rs_05 <> NULL Then '(or If rs_05 <> ""
rs_05.MoveFirst
Else
MsgBox "Is Null"
End If
The above gives me a "Type mismatch" error on runnning. Does anyone know how to fix this? Thanks.