Hello,
I've been having difficulty trying to have a checkbox enter a date in a field when ticked and remove the date when unchecked.
Thanks for your help.
Hello,
I've been having difficulty trying to have a checkbox enter a date in a field when ticked and remove the date when unchecked.
Thanks for your help.
What do you have so far, and where do you have it?
= if «Expr» [boxout] =true then
«Expr» [BoxOutDate]=Now()
I've checked out some examples online, however I receive the same errors:
"The expression you entered contains invalid syntax
You may have entered an operand without an operator"
Thanks.
Try this VBA code in the after update event of the checkbox:
Code:If Me.[boxout] = True Then Me.[BoxOutDate]=Now() Else Me.[BoxOutDate]=Null End If
Hello pbadly,
Thanks for the code and the lesson. It works as I asked.
Happy to help. I'll mark the thread solved.