I have two text box (1) excetpedDate (2) exceptedBy I would like the exceptedBy text box to be required if the exceptedDate text box has a date.
Thank You Angie
I have two text box (1) excetpedDate (2) exceptedBy I would like the exceptedBy text box to be required if the exceptedDate text box has a date.
Thank You Angie
Maybe field and/or textbox names should be AcceptedDate and AcceptedBy?
You can set the fields in table as required and let Access nag users. Or use code behind form to validate data before record committed.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I would like to use code
if me.status is “accepted” than
me.acceptedby is required
End if
not sure how to word the required.
Thanks Angie
I forgot to mention ValidationRule and ValidationText properties of textbox.
There are many examples of validation code in form BeforeUpdate event.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.