Hello...
I am attempting to create code in a query to state: If the [LastDate] occurred in the previous month then 1, otherwise 0.
This is what I attempted to do:
[PHP]OTLast Mth:iiif([LastDate]=DateSerial(Yea r(Date()), Month(Date()), 1, 0) [/PHP]
It is not working.....any one have any suggestions?
Thanks
I am attempting to create code in a query to state: If the [LastDate] occurred in the previous month then 1, otherwise 0.
This is what I attempted to do:
[PHP]OTLast Mth:iiif([LastDate]=DateSerial(Yea r(Date()), Month(Date()), 1, 0) [/PHP]
It is not working.....any one have any suggestions?
Thanks
Comment