In MS-Access 2007, I have a table, [Test_Master]
where I have a field [DT_REPORT]
. I want to update [Test_Norm_Due] by 2 months
if field [Size] = "small"
. If the field "Size" = "Med."
then by 3 months. I create below query but it is throwing Syntax error
. Can someone help.
UPDATE Test_Master
SET Test_Master.Test_Norm_Due =
IIF((([Test_Master]![Size]="small")), DateAdd(("m",2,[Test_Master]![DT_REPORT]))),
IIF((([Test_Master]![Size]="med.")), DateAdd(("m",3,[Test_Master]![DT_REPORT])));