Dear all,
I have a form that contains boxes with numbers (from a database), there are also decision boxes in a form that contain Target (Yes, No) (Combo32). Termination date & Reasons!
The person must make a decision if the box with numbers is negative (Text29). I have used this code, and it works fine when you move your mouse to the combo 32! But still you can use the navigation button and go to next record (next customer)! My idea is to stop this! So when the number in Text29 is negative you can not move to next record until you fill the required fields!
Private Sub Combo32_BeforeUpdate(Cancel As Integer)
If Len(Me.Text29) > 0 Then
If IsNull(Me.Combo32) Then
Cancel = True
MsgBox "You must make a decision in Target Customer field"
End If
End If
End Sub
Thanks in advance!