G
Guest
I have a form, whose record source is a query. In the underlying table I
have a field called LWC, which is a required field.
On my form, I have an option box with 2 options, essentially a true/false
scenario. which populate the LWC field with either a 1 or a 2. I need to
require that one of these options to be chosen before the user exits the form.
Based on some of the posts here, I have written an Event Procedure in the
"Before Update" Properties of the form as follows:
If IsNull(Me.Option1) AND IsNull(Me.Option2) Then
MsgBox "Please Enter a Mail Group"
Cancel = True
End If
It isn't working - nothing prevents you from closing the form without one of
these options checked. What am I doing wrong? Am I correct that Me.Option1
and Me.Option2 be the names of the option buttons?
Any suggestions are appreciated!
have a field called LWC, which is a required field.
On my form, I have an option box with 2 options, essentially a true/false
scenario. which populate the LWC field with either a 1 or a 2. I need to
require that one of these options to be chosen before the user exits the form.
Based on some of the posts here, I have written an Event Procedure in the
"Before Update" Properties of the form as follows:
If IsNull(Me.Option1) AND IsNull(Me.Option2) Then
MsgBox "Please Enter a Mail Group"
Cancel = True
End If
It isn't working - nothing prevents you from closing the form without one of
these options checked. What am I doing wrong? Am I correct that Me.Option1
and Me.Option2 be the names of the option buttons?
Any suggestions are appreciated!