G 
		
								
				
				
			
		Guest
I have a nested if I am having problems with.  If Cartage rate is 0 see 1st
part of below. (I copy and pasted each part from below so can understand
better)
Round(IIf([CartageRate]=0,Round([FuelperRate]*[GrossWeight],2),
If the Alternate Cartage Rate field is 0 then do the iif where if Grosswt=0
( see second part of below),
IIF([AltCartageRate]=0,(IIf([GrossWeight]=0,[CartageRate]*[TruckHours],[CartageRate]*[GrossWeight])))),(
If Alt cartage rate is not 0 than do IIF from 3rd part below
IIF([GrossWeight]=0,[AltCartageRate]*[TruckHours],[AltCartageRate]*[GrossWeight])),2)
Don't know how to nest them all and tie together under Cartage Paid with
correct IIF and ()
CartagePaid:
Round(IIf([CartageRate]=0,Round([FuelperRate]*[GrossWeight],2),IIF([AltCartageRate]=0,(IIf([GrossWeight]=0,[CartageRate]*[TruckHours],[CartageRate]*[GrossWeight])))),(IIF([GrossWeight]=0,[AltCartageRate]*[TruckHours],[AltCartageRate]*[GrossWeight])),2)
thanks,
Barb
				
			part of below. (I copy and pasted each part from below so can understand
better)
Round(IIf([CartageRate]=0,Round([FuelperRate]*[GrossWeight],2),
If the Alternate Cartage Rate field is 0 then do the iif where if Grosswt=0
( see second part of below),
IIF([AltCartageRate]=0,(IIf([GrossWeight]=0,[CartageRate]*[TruckHours],[CartageRate]*[GrossWeight])))),(
If Alt cartage rate is not 0 than do IIF from 3rd part below
IIF([GrossWeight]=0,[AltCartageRate]*[TruckHours],[AltCartageRate]*[GrossWeight])),2)
Don't know how to nest them all and tie together under Cartage Paid with
correct IIF and ()
CartagePaid:
Round(IIf([CartageRate]=0,Round([FuelperRate]*[GrossWeight],2),IIF([AltCartageRate]=0,(IIf([GrossWeight]=0,[CartageRate]*[TruckHours],[CartageRate]*[GrossWeight])))),(IIF([GrossWeight]=0,[AltCartageRate]*[TruckHours],[AltCartageRate]*[GrossWeight])),2)
thanks,
Barb
