Mobiusrune
Registered User.
- Local time
- Today, 02:09
- Joined
- Jan 7, 2013
- Messages
- 28
I am having issues with assigning search criteria for the "Find Next Button". I used the wizard and it does not ask what criteria to use for Find Next. I am assuming there is a bit of VBA I need to add to the generic Find Next button. This is what comes up when I use the wizard to create the button:
How do I define the criteria for the next record. I want the db to move to the next record with the same [PtMRN].
Private Sub Command118_Click()
On Error GoTo Err_Command118_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_Command118_Click:
Exit Sub
Err_Command118_Click:
MsgBox Err.Description
Resume Exit_Command118_Click
End Sub
On Error GoTo Err_Command118_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_Command118_Click:
Exit Sub
Err_Command118_Click:
MsgBox Err.Description
Resume Exit_Command118_Click
End Sub
How do I define the criteria for the next record. I want the db to move to the next record with the same [PtMRN].