IIF Statement using Date() Function

Martano0811

Registered User.
Local time
Today, 06:55
Joined
May 14, 2012
Messages
16
Here is the If statement flag :

CPC and MM Flag: IIf(Date()-[CPC Milestone 14+].[CPC and MM approves floorplan Target]-[CPC Milestone 14+].[CPC and MM approves floorplan Actual]>"14","14+")

The CPC and MM approves Target/Actual fields are in Date/Time format


I would like to calculate a field based on todays date but its not calucalating properly Is there a ways to get this date query to work? i would lke to get a 14+ on all rows that are 14 days past the target date.
 
You wouldn't want the quotes around the value in the test portion. I'd include a False argument, even if it's just "".
 
If you are looking for projects that are 14 days overdue then it is merely Date()-Target, but first you need to find if the project is overdue, what is in Actual in this case?

Probably you need
Iif(actual is null,"",Iif(Date()-Target >14,"14+",""))

Brian
 

Users who are viewing this thread

Back
Top Bottom