G
Guest
i want to run a procedure if a recordset comes up empty....what is the
correct syntax?
Do While Not rstRecordSet.EOF
If rstRecordSet("ID") = Empty Then
MsgBox stempGlobal, vbCritical, "record not found"
'run procedure
Else
MsgBox rstRecordSet("PT_ID"), vbCritical, "record Found"
End If
correct syntax?
Do While Not rstRecordSet.EOF
If rstRecordSet("ID") = Empty Then
MsgBox stempGlobal, vbCritical, "record not found"
'run procedure
Else
MsgBox rstRecordSet("PT_ID"), vbCritical, "record Found"
End If