D
Daniel
I'm trying to use a before update event to stop the user from entering certain information before a specific field is filled. I came up with the following code:
Private Sub DMU_Signature_BeforeUpdate(Cancel As Integer)
If IsNull(Forms![Drawing Management Frm]![Drawing History Frm sous-formulaire]![Drawing Status Tbl subform].Form![Lead Date]) Then
MsgBox "You cannot enter a DMU Signature until the Lead Date is entered"
Me.DMU_Signature = Null
End If
End Sub
the problem is that is still creates an entry in the subform (a blank entry but an entry none the less). How can I simply stop a entry from being created altogether if the [Lead Date] field is empty/null?
Thank you
Daniel
Private Sub DMU_Signature_BeforeUpdate(Cancel As Integer)
If IsNull(Forms![Drawing Management Frm]![Drawing History Frm sous-formulaire]![Drawing Status Tbl subform].Form![Lead Date]) Then
MsgBox "You cannot enter a DMU Signature until the Lead Date is entered"
Me.DMU_Signature = Null
End If
End Sub
the problem is that is still creates an entry in the subform (a blank entry but an entry none the less). How can I simply stop a entry from being created altogether if the [Lead Date] field is empty/null?
Thank you
Daniel