R
Rob
I have a form that requires data to be entered into each field. On this form
there is a button that is clicked to run a macro. Before the macro runs, at
the update event property of the form, I have this function.
If IsNull(Me![ReleaseNumber]) Then
MsgBox "'Release #' is a required field."
Cancel = True
Me.[ReleaseNumber].SetFocus
End If
This continues for each of the fields. I want to write a simple statement
to stop the macro that is run if this condition exists and to SetFocus to the
field where the error occurred. The latter is working fine but how do I get
the macro to stop completely if this condition occurs.
Rob
there is a button that is clicked to run a macro. Before the macro runs, at
the update event property of the form, I have this function.
If IsNull(Me![ReleaseNumber]) Then
MsgBox "'Release #' is a required field."
Cancel = True
Me.[ReleaseNumber].SetFocus
End If
This continues for each of the fields. I want to write a simple statement
to stop the macro that is run if this condition exists and to SetFocus to the
field where the error occurred. The latter is working fine but how do I get
the macro to stop completely if this condition occurs.
Rob