Keith is definitely right, but I would like to give a little more detail.
For ADO and DAO, you have a Begin-of-File (BOF) marker and an end-of-file marker (EOF). Records are returned as follows
[BOF] [Record one] <- [Record two] ... [Record n] [EOF]
The arrow indicates where the cursor is. The cursor indicates a record in the set recordset.
If the records do not return, you get this
[BOF] [EOF]
So, if both boxes are checked, there are no entries. If EOF is installed, either you do not have records, or you passed the last record. (You move this cursor to the next record with this command.)
rstCurrentTicket.MoveNext
You can also check
If (rstCurrentTicket.EOF and rstCurrentTicket.BOF) Then msgbox "There were no Trouble Tickets found." Else 'Do something here. End If
source share