N
Nick
I have written a piece of code that prompts users to enter values in text
fields or combo boxes before they can proceed. The code for one of the
fields is listed below:
Private Sub Part__Exit(Cancel As Integer)
If IsNull(Me.Part_) Then '<--small loop to prompt for null values
MsgBox "Please Enter Part #! You Cannot Proceed Otherwise"
Me.Part_.SetFocus
Cancel = True
End If
End Sub
The code works well; however, I would rather create a prompt when the users
reach the "Save and Print Record" button that informs the users that a field
is null and they must enter a value before they can proceed. I am having a
little trouble with the code logic. Any help here would be GREATLY
appreciated.
Thanks in advance,
Nick
fields or combo boxes before they can proceed. The code for one of the
fields is listed below:
Private Sub Part__Exit(Cancel As Integer)
If IsNull(Me.Part_) Then '<--small loop to prompt for null values
MsgBox "Please Enter Part #! You Cannot Proceed Otherwise"
Me.Part_.SetFocus
Cancel = True
End If
End Sub
The code works well; however, I would rather create a prompt when the users
reach the "Save and Print Record" button that informs the users that a field
is null and they must enter a value before they can proceed. I am having a
little trouble with the code logic. Any help here would be GREATLY
appreciated.
Thanks in advance,
Nick