Is there an Access Doctor in the house? I've been working on this all of yesturday and of no success. I need you guys expertise. I thought that this exercise is simple, but apparently it's not.
OK, here it is... I have 6 fields on my form that I want to make required field. i.e. Lead_Time, Order_date, due_date, MPA Name, Responsible Supplier and Supplier approval name. But here's a catch, If the supplier agree to pay, they would mark a "yes" and if "yes" than the field would be required.
I've started on the Lead_Time field and that didn't work. Please help.
Much appreciated.
Private Sub txtLead_Time_BeforeUpdate(Cancel As Integer)
If Me.txtLead_Time = "" Or IsNull(Me.txtLead_Time) Then
MsgBox "Lead_Time is a required Field", vbCritical, vbOKOnly + vbDefaultButton2, "Missing Data"
Me.txtLead_Time.SetFocus
DoCmd.CancelEvent
End If
End Sub
OK, here it is... I have 6 fields on my form that I want to make required field. i.e. Lead_Time, Order_date, due_date, MPA Name, Responsible Supplier and Supplier approval name. But here's a catch, If the supplier agree to pay, they would mark a "yes" and if "yes" than the field would be required.
I've started on the Lead_Time field and that didn't work. Please help.
Much appreciated.

Private Sub txtLead_Time_BeforeUpdate(Cancel As Integer)
If Me.txtLead_Time = "" Or IsNull(Me.txtLead_Time) Then
MsgBox "Lead_Time is a required Field", vbCritical, vbOKOnly + vbDefaultButton2, "Missing Data"
Me.txtLead_Time.SetFocus
DoCmd.CancelEvent
End If
End Sub