I want to create an IIf statement that if [Forms]![Fm_Date_Parameter]![EndDate] is before July 1 of any given year then, 1 otherwise, 2. I'd appreciate any help in this.
I want to create an IIf statement that if [Forms]![Fm_Date_Parameter]![EndDate] is before July 1 of any given year then, 1 otherwise, 2. I'd appreciate any help in this.
Hi -
iif(month([Forms]![Fm_Date_Parameter]![EndDate]) <= 6,1,2)
should work for you.
HTH
John