I am trying to run following code before issuing an email. So if there are records in the query, I should be able to fire off an email.
If RecordCount = 0 Then
MsgBox "There are no DVs to be procesed. Please try later."
Cancel = True
Exit Sub
else ....
But this does not seem to be working as I keep getting the message even though theere are record in the query. I wonder what do I need to do to fix this.
If RecordCount = 0 Then
MsgBox "There are no DVs to be procesed. Please try later."
Cancel = True
Exit Sub
else ....
But this does not seem to be working as I keep getting the message even though theere are record in the query. I wonder what do I need to do to fix this.