I want to put an IF THEN ELSE statement into some sode so that if an sql statement returns an empty recordset, the code exits (without doing the looping data crunch).
Having had a look around I tried;
If Cupidrst Is Null Then
Me![chkPBSEAwaitAdopts] = 1
MsgBox "PBSE Await Adopts Complete"
Exit Sub
End If
Cupidrst.MoveFirst
etc
But this is giving me a Run-time error '424': Object Required error.
Any ideas what is wrong with this?
Having had a look around I tried;
If Cupidrst Is Null Then
Me![chkPBSEAwaitAdopts] = 1
MsgBox "PBSE Await Adopts Complete"
Exit Sub
End If
Cupidrst.MoveFirst
etc
But this is giving me a Run-time error '424': Object Required error.
Any ideas what is wrong with this?