Multiple iif expession question

chef_tim

Registered User.
Local time
Today, 11:09
Joined
Dec 16, 2004
Messages
77
Good morning, I'm working on a weapons qualification report. We have 3 catagories ABC which shot at different intervals. I've got group A figured out =IIf([ARMING GROUP]="GROUP A",[M16QUAL]+365) I need to know how to add two more expressions just like that but adding two and three years respectively. I've tried alot of combinations, but I think I am just missing the transition from one to the next. Hope this makes sence :o . Thanks for the help, Tim
 
Try this:-

IIf([ARMING GROUP]="GROUP A",[M16QUAL]+365, IIf([ARMING GROUP]="GROUP B",[M16QUAL]+730, IIf([ARMING GROUP]="GROUP C",[M16QUAL]+1095, 0)))

If no valid [ARMING GROUP] (ie A, B or C) then returns 0
 
Hi Allan, that is giving me a "syntax error (comma) in query expression". Thanks, Tim
 
Put an equal sign before =IIf([ARMING GROUP]="GROUP A",[M16QUAL]+365, IIf([ARMING GROUP]="GROUP B",[M16QUAL]+730, IIf([ARMING GROUP]="GROUP C",[M16QUAL]+1095, 0)))

hth,
Michael
 

Users who are viewing this thread

Back
Top Bottom