Hi All,
I'm trying to calculate the next Wednesday on the field [due] i.e. today being 21/02/17, the next Wednesday will be 27/12/2017.
I have a working formula in excel which I'm trying to convert to access.
The excel formula is
and this is where I am with trying to imitate this in Access
I'm getting the expression you entered contains invalid syntax or you need to enclose your text with quotes at the false part of the IIF statement but cannot figure out where I am going wrong.
Any help or suggestions would be much appreciated
I'm trying to calculate the next Wednesday on the field [due] i.e. today being 21/02/17, the next Wednesday will be 27/12/2017.
I have a working formula in excel which I'm trying to convert to access.
The excel formula is
Code:
=IF(WEEKDAY(AE2662)<=4,AE2662+4-WEEKDAY(AE2662),AE2662+11-WEEKDAY(AE2662))
and this is where I am with trying to imitate this in Access
Code:
NextWed: IIf(Weekday([due]<=4),[due]+4)-Weekday([due]),[due]+11-weekday[due]))
I'm getting the expression you entered contains invalid syntax or you need to enclose your text with quotes at the false part of the IIF statement but cannot figure out where I am going wrong.
Any help or suggestions would be much appreciated