Hi - I have a form that is filled out by users in the front end database. I wrote some code in the form in the "After Update" event procedure to ensure that certain fields are filled out before going to the next form. The code works EXCEPT for the two items in red below. These are check boxes whereas the first three items are combo boxes and text boxes.
If IsNull(Me.Combo111) Then
MsgBox "You must enter a LOB"
Me.Combo111.SetFocus
End If
If IsNull(Me.Combo82) Then
MsgBox "You must enter your initials"
Me.Combo82.SetFocus
End If
If IsNull(Me.[Loan Nbr]) Then
MsgBox "You must enter a Loan Number"
Me.Combo82.SetFocus
End If
If IsNull(Me.Review_Start) Then
MsgBox "Please Click Review Start"
Me.Review_Start.SetFocus
End If
If IsNull(Me.Review_Complete) Then
MsgBox "Please Click Review Complete"
Me.Review_Start.SetFocus
End If
What code do I need which would tell the user to make sure they check the box before moving to the next record? I typed in "If 0", but that didn't work either.
I'm still a very new user -- so I very much appreciate any assistance - thank you very much!!!
Linda
If IsNull(Me.Combo111) Then
MsgBox "You must enter a LOB"
Me.Combo111.SetFocus
End If
If IsNull(Me.Combo82) Then
MsgBox "You must enter your initials"
Me.Combo82.SetFocus
End If
If IsNull(Me.[Loan Nbr]) Then
MsgBox "You must enter a Loan Number"
Me.Combo82.SetFocus
End If
If IsNull(Me.Review_Start) Then
MsgBox "Please Click Review Start"
Me.Review_Start.SetFocus
End If
If IsNull(Me.Review_Complete) Then
MsgBox "Please Click Review Complete"
Me.Review_Start.SetFocus
End If
What code do I need which would tell the user to make sure they check the box before moving to the next record? I typed in "If 0", but that didn't work either.
I'm still a very new user -- so I very much appreciate any assistance - thank you very much!!!
Linda