J
James
I have a command button that refreshes its form to complete any pending
updates then goes on to perform some code.
Private Sub cmdButton_Click()
Form.Refresh
...
End Sub
Private Sub Form_BeforeUpdate()
If Record Not Valid Then
Cancel = True
End If
End Sub
This cancels the update but the code for the command button goes on to fire.
Is there a way of cancelling the button click too?
Thanks
updates then goes on to perform some code.
Private Sub cmdButton_Click()
Form.Refresh
...
End Sub
Private Sub Form_BeforeUpdate()
If Record Not Valid Then
Cancel = True
End If
End Sub
This cancels the update but the code for the command button goes on to fire.
Is there a way of cancelling the button click too?
Thanks