G
Guest
I want to put the date in the header of a couple of my reports. The only
catch is that I need the date that is added to be dependent on the time of
day the report is generated. For example, if the report is generated before
8AM it should have today's date. After 8AM it should have tomorrow's date.
I have tried the following code, but it always gives me tomorrow's date:
=IIf(Time()>"8:00:00 AM",Date(),Date()+1)
This is probably an easy fix, but I guess I am overlooking it.
Thanks in advance.
catch is that I need the date that is added to be dependent on the time of
day the report is generated. For example, if the report is generated before
8AM it should have today's date. After 8AM it should have tomorrow's date.
I have tried the following code, but it always gives me tomorrow's date:
=IIf(Time()>"8:00:00 AM",Date(),Date()+1)
This is probably an easy fix, but I guess I am overlooking it.
Thanks in advance.