I am pasting some code that I wrote to see if anyone can spot the
problem. This code figures Shifts needed to finish a set schedule
amount. Each shift is figured as 7.5 hours. It worked great until I
tried to make this a nested If function. You see, there are 4 fields
that could have a 'standard' in it. Only one has a standard in it and
I need to look at all the fields to see which one has a standard in it
and then use that standard in the calculations.
The [2004Standard] and the [NewStandard] field are calculated
correctly but the [CFInternalEstimate] and [CFSubmittedToPitts] are
not calculating anything.
Am I doing this the wrong way?
IIf(([UPC's]![2004standard]>0), _
([FSAPROD_RMRESR]![RREXQY])/([UPC's]![PeopleNeeded]*[UPC's]![2004standard]*7.5),
_
([FSAPROD_RMRESR]![RREXQY])/([UPC's]![PeopleNeeded]*[UPC's]![NewStandard]*7.5)),
_
iif(([UPC's]![CFInternalEstimate]>0),([FSAPROD_RMRESR]![RREXQY])/ _
([UPC's]![PeopleNeeded]*[UPC's]![CFInternalEstimate]*7.5), _
([FSAPROD_RMRESR]![RREXQY])/([UPC's]![PeopleNeeded]*[UPC's]![CFSubmittedToPitts]*7.5))
Any help is greatly appreciated...
Norma