I have a hidden textbox and I'm trying to make it "required", but only if its visible.
I used the Len argument, heres my code:
this is in the BeforeUpdate event
If Len(Me.Processing_Comments) = Null Or 0 Then
MsgBox "Please Explain Yourself"
Cancel = True
End If
I figured the best way to do this would be to have it read the number of characters that have been written into the textbox and if it comes back null or 0 then cancel the update.
BUT, its only working if I type a letter in and then erase the letter. If anyone has any ideas or other ways of going about this, Id really appreciate it.
Thanks
HI-Priest
I used the Len argument, heres my code:
this is in the BeforeUpdate event
If Len(Me.Processing_Comments) = Null Or 0 Then
MsgBox "Please Explain Yourself"
Cancel = True
End If
I figured the best way to do this would be to have it read the number of characters that have been written into the textbox and if it comes back null or 0 then cancel the update.
BUT, its only working if I type a letter in and then erase the letter. If anyone has any ideas or other ways of going about this, Id really appreciate it.
Thanks
HI-Priest