Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date comparison 1

Status
Not open for further replies.

mikeba1

Programmer
Jan 2, 2005
235
GB
I need to change a text field on a report depending whether the current date is > 31/12/2007

I am trying to put an iif function in the control source but seem unable to get it to work.
I'm not sure what the syntax should be when comparing the current date.

i.e iif(date()>'31/12/2007', "action a',action b')

any help greatly appreciated
 

iif(date()>#31/12/2007#, action a,action b)

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top