dm5085
Technical User
- Jul 15, 2004
- 17
Can anyone help me with the following:
I have an expression in a query that returns a null value if the month is 12 and the day is 1. Expression works properly on all other dates. Can anyone figure out what's wrong with my syntax? All I'm trying to do is add 1 to the recognition year if the date is later than 12/1.
RecYear: IIf([Month]>11,IIf([Day]>1,DatePart("yyyy",[qryUnionGoldCoinAward]![DateReceived])+1),DatePart("yyyy",[qryUnionGoldCoinAward]![DateReceived]))
I have an expression in a query that returns a null value if the month is 12 and the day is 1. Expression works properly on all other dates. Can anyone figure out what's wrong with my syntax? All I'm trying to do is add 1 to the recognition year if the date is later than 12/1.
RecYear: IIf([Month]>11,IIf([Day]>1,DatePart("yyyy",[qryUnionGoldCoinAward]![DateReceived])+1),DatePart("yyyy",[qryUnionGoldCoinAward]![DateReceived]))