Hello All,
I'm trying to generate a query using an IIF statement where I need to calculate a new date based the current date.
Basic premis: If DateA is >= to current date, I want to use DateA+30, otherwise use DateB+30
Program: Microsoft Access 97
Here's my iif statement:
IIf([Table]![DateA]>=Today(),([Table]![DateA]+30),([Table]![DateB]+30))
I keep getting an error:
Compile Error in query expression; I don't believe I have a syntax error. Anyone have any suggestions or ideas on how to approach this for a resolution?
Any help would be appreciated!
Thanks!
BenAd
I'm trying to generate a query using an IIF statement where I need to calculate a new date based the current date.
Basic premis: If DateA is >= to current date, I want to use DateA+30, otherwise use DateB+30
Program: Microsoft Access 97
Here's my iif statement:
IIf([Table]![DateA]>=Today(),([Table]![DateA]+30),([Table]![DateB]+30))
I keep getting an error:
Compile Error in query expression; I don't believe I have a syntax error. Anyone have any suggestions or ideas on how to approach this for a resolution?
Any help would be appreciated!
Thanks!
BenAd
Comment