Field visible depend on current date

home70

Registered User.
Local time
Today, 12:22
Joined
Jul 10, 2006
Messages
72
Is there a way to make a field on a report visible or not depending on the current date?
 
Code:
If CheckDate = Date() then
    Fieldname.Visible = True
else
    Fieldname.Visible = false
end if
 
Perfect. Thank you Adeptus.
 
A slightly simpler version of the above is:

Fieldname.Visible = CheckDate = Date()

In this version, if Date = CheckDate, then Fieldname will be visible, otherwise invisible.

Good luck.
 
ListO said:
A slightly simpler version of the above is:

Fieldname.Visible = CheckDate = Date()

In this version, if Date = CheckDate, then Fieldname will be visible, otherwise invisible.

Good luck.
Might need brackets...
fieldname.visible = ( checkdate = date() )
I never trust it to resolve in the right order otherwise :D
 
Have faith. It works left to right unless forced otherwise!
 

Users who are viewing this thread

Back
Top Bottom