A
Afrosheen via AccessMonster.com
When looking for a record that has duplicate last names I can press cmdNext
to get the next record. The source control is based on a master query. Once I
keep pressing the cmdNext it will find all the codes. When it gets to the end
of the cmdNext I would like something to say that this is the end of the
records. I don't believe it is a recordset and I'm not sure how to check and
see if it is.
This is the code for the cmdNext. Your help would be appreciated. Thanks in
advance.
Private Sub cmdNext_Click()
On Error GoTo Err_cmdNext_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_cmdNext_Click:
Exit Sub
Err_cmdNext_Click:
MsgBox Err.Description
Resume Exit_cmdNext_Click
End Sub
to get the next record. The source control is based on a master query. Once I
keep pressing the cmdNext it will find all the codes. When it gets to the end
of the cmdNext I would like something to say that this is the end of the
records. I don't believe it is a recordset and I'm not sure how to check and
see if it is.
This is the code for the cmdNext. Your help would be appreciated. Thanks in
advance.
Private Sub cmdNext_Click()
On Error GoTo Err_cmdNext_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_cmdNext_Click:
Exit Sub
Err_cmdNext_Click:
MsgBox Err.Description
Resume Exit_cmdNext_Click
End Sub