S
spcscooter via AccessMonster.com
I have a next button in a form that I have criteria for. I have a date field
that has to be entered before going to another record. When I click the next
button I get the pop up that says click update to continue but the form
displays the next record instead of staying on the current record that needs
updating. Here is the code that I am using.
____________________________________________________________________________________
Private Sub Command39_Click()
If IsNull([Post Called Customer]) Then
MsgBox "You must click the UPDATE button to continue!!!"
Cancel = True
End If
On Error GoTo Err_Command39_Click
DoCmd.GoToRecord , , acNext
Exit_Command39_Click:
Exit Sub
Err_Command39_Click:
MsgBox Err.Description
Resume Exit_Command39_Click
End Sub
________________________________________________________________________
Thank you for all your help!!!!!!!!
that has to be entered before going to another record. When I click the next
button I get the pop up that says click update to continue but the form
displays the next record instead of staying on the current record that needs
updating. Here is the code that I am using.
____________________________________________________________________________________
Private Sub Command39_Click()
If IsNull([Post Called Customer]) Then
MsgBox "You must click the UPDATE button to continue!!!"
Cancel = True
End If
On Error GoTo Err_Command39_Click
DoCmd.GoToRecord , , acNext
Exit_Command39_Click:
Exit Sub
Err_Command39_Click:
MsgBox Err.Description
Resume Exit_Command39_Click
End Sub
________________________________________________________________________
Thank you for all your help!!!!!!!!