I was wondering how I would make sure all the fields are filled in... right now i am trying to make an order checklist form. so there is a checkbox beside each item. if the checkbox is selected, then the corresponding field must be filled in.
i read another post which had a similar problem and it suggested putting error trapping in
"Private Sub Form_AfterUpdate()" but this doesn't seem to work.
then i tried to put the necessary error trapping in
the close event like this
Private Sub Form_Close()
If Me![LV Bushing] = -1 And IsNull(Me![Combo413]) Then
MsgBox "Please key in LV Bushing info", vbExclamation, "Missing Info"
Me![LV Bushing].SetFocus
Exit Sub
End If
End Sub
But this just causes an error message to be displayed and the form exits...
IN A NUTSHELLL: How would I make the form not exit until all the required fields are filled in?
i read another post which had a similar problem and it suggested putting error trapping in
"Private Sub Form_AfterUpdate()" but this doesn't seem to work.
then i tried to put the necessary error trapping in
the close event like this
Private Sub Form_Close()
If Me![LV Bushing] = -1 And IsNull(Me![Combo413]) Then
MsgBox "Please key in LV Bushing info", vbExclamation, "Missing Info"
Me![LV Bushing].SetFocus
Exit Sub
End If
End Sub
But this just causes an error message to be displayed and the form exits...
IN A NUTSHELLL: How would I make the form not exit until all the required fields are filled in?