R
Roger Bell
I have a command button on a form, ( On Click Event Procedure), which when
clicked, will take you to the next record as follows:
Private Sub Next_Envelope1_Click()
On Error GoTo Err_Next_Envelope1_Click
DoCmd.GoToRecord , , acNext
Exit_Next_Envelope1_Click:
Me.W1.SetFocus
Exit Sub
Err_Next_Envelope1_Click:
MsgBox Err.Description
Resume Exit_Next_Envelope1_Click
End Sub
I would like to add a clause as follows:
Where Envelope Number (field name) >0
Could someone tell me where the clause should be inserted and the correct
syntax?
Thanks for any help
clicked, will take you to the next record as follows:
Private Sub Next_Envelope1_Click()
On Error GoTo Err_Next_Envelope1_Click
DoCmd.GoToRecord , , acNext
Exit_Next_Envelope1_Click:
Me.W1.SetFocus
Exit Sub
Err_Next_Envelope1_Click:
MsgBox Err.Description
Resume Exit_Next_Envelope1_Click
End Sub
I would like to add a clause as follows:
Where Envelope Number (field name) >0
Could someone tell me where the clause should be inserted and the correct
syntax?
Thanks for any help