Good Afternoon,
Long time lurker, first time poster...
I have a query where I used the expression builder to determine an inspection date based on 10 months after a permit date, but also taking into account whether there is an extension or not. My expression goes something like this:
IIf([RFA MAIN].[PermitExtension]="3 Months",DateAdd("m",13,DateSerial(Year([rfa main].[DATE RET'D TO CUST]),Month([rfa main].[DATE RET'D TO CUST])+1,0))...
and it repeats looking for the different extension times (which is a text field). The inspection date is always the last of the month (i.e. permit date 1/7/18, inspection date is 10 months out but the last day of the month so 10/31/18).
.
The expression field gives me the results I need, but when I try to apply <Date() as my query criteria, it gives me a data mismatch error. I've tried format as "mm/dd/yyyy", formatDateTime and DateValue and none of them have solved my issue?
Any suggestions?
Thanks!
Long time lurker, first time poster...
I have a query where I used the expression builder to determine an inspection date based on 10 months after a permit date, but also taking into account whether there is an extension or not. My expression goes something like this:
IIf([RFA MAIN].[PermitExtension]="3 Months",DateAdd("m",13,DateSerial(Year([rfa main].[DATE RET'D TO CUST]),Month([rfa main].[DATE RET'D TO CUST])+1,0))...
and it repeats looking for the different extension times (which is a text field). The inspection date is always the last of the month (i.e. permit date 1/7/18, inspection date is 10 months out but the last day of the month so 10/31/18).
.
The expression field gives me the results I need, but when I try to apply <Date() as my query criteria, it gives me a data mismatch error. I've tried format as "mm/dd/yyyy", formatDateTime and DateValue and none of them have solved my issue?
Any suggestions?
Thanks!