The Iif as you show it is incomplete and will cause a syntax error - what does the whole statement look like?
Code:
UPDATE [REF Dino],
[REF Form Info]
SET [REF Dino].Bones =
IIF(
[REF Dino]![Category]="Region"
AND [REF Dino]![Dug Type]<>"Gen",[REF Form Info]![Region BagOf Bones],
IIF(
[REF Dino]![Category] LIKE "*Spec*",
IIF(
ISNULL([REF Form Info]![WWF]),0.115,[REF Form Info]![WWF]),
IIF(
[REF Dino]![Category]="Ret-30"
AND [REF Dino]![Dug Type]<>"Gen",
IIF(
[REF Form Info]![Includes SSGs as BagOf?]="Yes",[REF Form Info]![Ret 30 BagOf Bones]-0.01,[REF Form Info]![Ret 30 BagOf Bones]),
IIF(
[REF Dino]![Category]="Ret-90"
AND [REF Dino]![Dug Type]<>"Gen",
IIF(
[REF Form Info]![Includes SSGs as BagOf?]="Yes",[REF Form Info]![Ret 90 BagOf Bones]-0.01,[REF Form Info]![Ret 90 BagOf Bones]),[REF Dino]![Bones])))),
[REF Dino].[Discovery] =
IIF(
[REF Dino]![Category]="Region",[REF Form Info]![Region Discovery],
IIF(
[REF Dino]![Dug Type]="Gen",
IIF(
[REF Dino]![Category] LIKE "Ret*30",[REF Form Info]![Ret 30 Gen Discovery],[REF Form Info]![Ret 90 Gen Discovery]),
IIF(
[REF Dino]![Category] LIKE "Ret*30",[REF Form Info]![Ret 30 BagOf Discovery],[REF Form Info]![Ret 90 BagOf Discovery])))
WHERE (((
[REF Dino].Category)<>"Inj-E")));
Please provide more details on what it is you are trying to do.
Just trying to understand IIF & what its doing so that I can explain it to my managers. I got about 50 of these to do & they tell me its easy. I told them if they think its easy to do it. Its not in my wheel house.
I don't mind doing it. But I need to understand. I think I do & tried to outline what I understand & what I am a little unclear about in my 1st post.
I am just asking a question so I can better understand & fish on my own.
Is the remainder (FALSE) of the IIF statement ALL of the other Recordsets in that field that DOES NOT meet the TRUE requirements?
Does ALL of the Recordsets from the AND clause go through the FALSE part of the IIF meatGrinder?