S
Sam \(antha\)
I have stared at this (control source) code for a long
time and cannot see the problem. Perhaps someone can help
me.
My test for [framePricing]=1 works successfully, as do
the prior tests. However, I cannot get return for
[framePricing]=2. I am convinced I am not placing
parenthesis properly, but when I change from below I get
the wrong number of arguments error.
Be kind, I am a (still being) self-taught amateur.
Thanks,
Sam
=IIf([frameService]<>3 Or [dogcount]=0,0,
IIf([framepricing]=1,
IIf([frameHSType]=1 And [dogcount]<4,
[PHS1231NetH]*[HSHolidayDays],
IIf([frameHSType]=1 And [dogcount]>3,
[PHS1241NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]<4,
[PHS2431NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]>3,
[PHS2441NetH]*[HSHolidayDays],
IIf([framepricing]=2,
IIf([frameHSType]=1 And [dogcount]<4,
[PHS1232NetH]*[HSHolidayDays],
IIf([frameHSType]=1 And [dogcount]>3,
[PHS1242NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]<4,
[PHS2432NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]>3,
[PHS2442NetH]*[HSHolidayDays])))))))))))
time and cannot see the problem. Perhaps someone can help
me.
My test for [framePricing]=1 works successfully, as do
the prior tests. However, I cannot get return for
[framePricing]=2. I am convinced I am not placing
parenthesis properly, but when I change from below I get
the wrong number of arguments error.
Be kind, I am a (still being) self-taught amateur.
Thanks,
Sam
=IIf([frameService]<>3 Or [dogcount]=0,0,
IIf([framepricing]=1,
IIf([frameHSType]=1 And [dogcount]<4,
[PHS1231NetH]*[HSHolidayDays],
IIf([frameHSType]=1 And [dogcount]>3,
[PHS1241NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]<4,
[PHS2431NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]>3,
[PHS2441NetH]*[HSHolidayDays],
IIf([framepricing]=2,
IIf([frameHSType]=1 And [dogcount]<4,
[PHS1232NetH]*[HSHolidayDays],
IIf([frameHSType]=1 And [dogcount]>3,
[PHS1242NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]<4,
[PHS2432NetH]*[HSHolidayDays],
IIf([frameHSType]=2 And [dogcount]>3,
[PHS2442NetH]*[HSHolidayDays])))))))))))