Checkbox = date (1 Viewer)

Mark_F

New member
Local time
Today, 05:04
Joined
Nov 5, 2021
Messages
10
Hi guys.
I need to use a check box on a form that will save the date on the report. How can I do that?
 

Minty

AWF VIP
Local time
Today, 04:04
Joined
Jul 26, 2013
Messages
10,372
In Access Date() will always give you today's date so set your control to that.
Me.Mycontrol = Date()
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:04
Joined
Oct 29, 2018
Messages
21,528
Also, you save data in tables. You just use reports to display them. Cheers!
 

Mark_F

New member
Local time
Today, 05:04
Joined
Nov 5, 2021
Messages
10
I have a hidden text box on the form which will hold the date once the checkbox is checked. The text box will will show the date on the report.
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 23:04
Joined
Feb 19, 2002
Messages
43,445
What is the purpose of the checkbox? Once it's set dies it stay set? Is the print date stored somewhere?

It seems to me, that if you want the date printed to show on the report when it is printed, you would just add an unbound control to the report with a ControlSource of
=Date()

If you want to save in the database the date the report was printed, then we need to be clear whether you want to keep only the FIRST date, the most recent date, or every date.
 

Mark_F

New member
Local time
Today, 05:04
Joined
Nov 5, 2021
Messages
10
Thanks. I solved it like this,

If me fridge = true then
[At fridge date] = now()
Else
[At fridge date = ""
End if
 

Users who are viewing this thread

Top Bottom