G
Guest
I have a form called frm_Vendor, on which I have a subform called
subfrm_Application.
I am trying to write code that says if Vendor_Nbr is 0 and Status_Code =
"Waiting List" (this is on the Vendor form), Application_Request_Date must be
populated on the Application tab (the subform).
I tried this code in the subfrm_Application BeforeUpdate event (and also
tried it on the frm_Vendor Before Updae Event:
If (Parent.Vendor_Nbr = "0" And Parent.Status_Code = "Waiting List" And
IsNull(Me.Application_Request_Date = True)) Then MsgBox "An Application
Request Date is required when Vendor Number is 0."
Cancel = True
End If
This didn't enforce anything. Any ideas on what is wrong with my code or if
I should be placing this in a different location? Thanks!
subfrm_Application.
I am trying to write code that says if Vendor_Nbr is 0 and Status_Code =
"Waiting List" (this is on the Vendor form), Application_Request_Date must be
populated on the Application tab (the subform).
I tried this code in the subfrm_Application BeforeUpdate event (and also
tried it on the frm_Vendor Before Updae Event:
If (Parent.Vendor_Nbr = "0" And Parent.Status_Code = "Waiting List" And
IsNull(Me.Application_Request_Date = True)) Then MsgBox "An Application
Request Date is required when Vendor Number is 0."
Cancel = True
End If
This didn't enforce anything. Any ideas on what is wrong with my code or if
I should be placing this in a different location? Thanks!