I was hoping someone could help me out with this formula below. I'm either missing a parentheses or have too many and or they may be in the wrong place.
Ignor the true and false words as they were just to help me find the correct place for the parentheses.
Thanks for your help as this is driving me crazy.
Mike
iif(Fields!ORDERTYPE.Value = "AR",
TRUE IIF(Fields!SHIFT.Value = "1st Shift",
TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"ARFIRSTSHIFT")),
FALSE IIF(Fields!SHIFT.Value = "2nd Shift",
TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"ARSECONDSHIFT")),
FALSE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"AR3RD")))),
FALSE iif(Fields!SHIFT.Value = "1st Shift",
TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonARFIRSTSHIFT")),
FALSE iif(Fields!SHIFT.Value = "2nd Shift",
TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonARSECONDSHIFT"))
FALSE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonAR3RD")))))