J
JIT
I am running a query with this in the criteria field:
IIf(DateDiff("d","Arrival Date",[Start Date])>[Rates]![FreeDays],[Departure
Date] Or IIf(DateDiff("d","ArrivalDate",[Start
Date])<[Rates]![FreeDays],((Max Charge Days Total-[Rates]![FreeDays]-DateDiff
("d", ArrivalDate, StartDate))))
It gives me an error warning that the expression has an invalid (dot) or !
Operator. Then it highlights the openning parenthesis right before the last
"d" in the expression. Does anyone know what is wrong?
Thank you
IIf(DateDiff("d","Arrival Date",[Start Date])>[Rates]![FreeDays],[Departure
Date] Or IIf(DateDiff("d","ArrivalDate",[Start
Date])<[Rates]![FreeDays],((Max Charge Days Total-[Rates]![FreeDays]-DateDiff
("d", ArrivalDate, StartDate))))
It gives me an error warning that the expression has an invalid (dot) or !
Operator. Then it highlights the openning parenthesis right before the last
"d" in the expression. Does anyone know what is wrong?
Thank you