Code:
Private Sub Form_Unload(Cancel As Integer)
If IsNull(Forms!frmentry.subfrmlines![Insertion].Value) Then
MsgBox ("Please Enter the Line Insertion Date")
Cancel = True
Me!subfrmlines.SetFocus
Me!subfrmlines.Form!Calendar0.Visible = True
Me!subfrmlines.Form!Calendar0.SetFocus
Leave a comment: