S
SylvieB
Hello Group
I need help.
On a form, I created a check box named approval. “approval†can only be
checked if the following fields are not blank: ProposalAmount, AwardDate,
win%.
If one of them or all are blank, a pop up message will display asking the
user to fill out those fields.
Making those fields required in the table won’t work because the condition
is based only on those 3 fields. The form contains other fields that don’t
need to be filled out to put a check mark.
How do you accomplish that? I’m using Access 2007. Thanks in advance for
your help.
I started writing this code but it does not work
Private Sub chkDg3offer_BeforeUpdate(Cancel As Integer)
If Me.chkDg3offer = True Then
If ProposalAmount = 0 Then
MsgBox "you must enter a value.", vbInformation, "missing value"
Cancel = True
End If
End If
End Sub
I need help.
On a form, I created a check box named approval. “approval†can only be
checked if the following fields are not blank: ProposalAmount, AwardDate,
win%.
If one of them or all are blank, a pop up message will display asking the
user to fill out those fields.
Making those fields required in the table won’t work because the condition
is based only on those 3 fields. The form contains other fields that don’t
need to be filled out to put a check mark.
How do you accomplish that? I’m using Access 2007. Thanks in advance for
your help.
I started writing this code but it does not work
Private Sub chkDg3offer_BeforeUpdate(Cancel As Integer)
If Me.chkDg3offer = True Then
If ProposalAmount = 0 Then
MsgBox "you must enter a value.", vbInformation, "missing value"
Cancel = True
End If
End If
End Sub