I'm having some problems setting little internal control type procedures for a textbox in Access.
I have a textbox that is ONLY visible if a certain date is entered in another textbox on the same form, I need this textbox to be required when its visible. (Ive asked this question before). So far this is my code:
BeforeUpdate event:
If IsNull(Me.Processing_Comments.Value) Then
MsgBox ("Please Explain Yourself"
End If
This works perfectly if you enter text and then delete it. BUT If you hit tab without entering anything or get the msgbox hit ok and then hit tab, it lets you leave, which is exactly what I cant have happen. Is this a problem with isnull?? beforeupdate event?? or how im wording it?? It seems like it should work.
Please help,
HI-Priest
I have a textbox that is ONLY visible if a certain date is entered in another textbox on the same form, I need this textbox to be required when its visible. (Ive asked this question before). So far this is my code:
BeforeUpdate event:
If IsNull(Me.Processing_Comments.Value) Then
MsgBox ("Please Explain Yourself"
End If
This works perfectly if you enter text and then delete it. BUT If you hit tab without entering anything or get the msgbox hit ok and then hit tab, it lets you leave, which is exactly what I cant have happen. Is this a problem with isnull?? beforeupdate event?? or how im wording it?? It seems like it should work.
Please help,
HI-Priest