I'm having some trouble with a particular form. I would like to lock a textbox until 7 other textboxes have a value in them. The other 7 textboxes are a mixture of text fields, double numers, currency, and dates. The textbox that I would like to keep locked (until conditions are met) is a date field. This is what I have so far. Keep in mind that this particular vba code only looks at one of the seven fields.
[code=vb]
Private Sub ReviewComplete_ Exit(Cancel As Integer)
If Not IsNull(ReviewCo mplete.Value) And Borrower.Value = "" Then
MsgBox "no borrower", vbOKOnly
Else
End If
End Sub
[/code]
This code does not seem to be working as it does not produce a message box when I tab out or click out of the ReviewComplete textbox. Any help is very much appreciated. Thank you!
Ryan E.
[code=vb]
Private Sub ReviewComplete_ Exit(Cancel As Integer)
If Not IsNull(ReviewCo mplete.Value) And Borrower.Value = "" Then
MsgBox "no borrower", vbOKOnly
Else
End If
End Sub
[/code]
This code does not seem to be working as it does not produce a message box when I tab out or click out of the ReviewComplete textbox. Any help is very much appreciated. Thank you!
Ryan E.
Comment