IIf ..
Hi
Here is what I use for what looks like a similar calculation, it goes in the query that the form/report is based on, I have attached a screen print to show where it goes
CPMCalc:
IIf([CPM]='CPM' And [%Delivered]<90,[DeliveredImps]/1000*[OnlineCP],
IIf([CPM]='CPM' And [%Delivered]>90,[Quantity]/1000*[OnlineCP],
IIf([CPM]='CPV' And [%Delivered]<90,[DeliveredImps]*[OnlineCP],
IIf([CPM]='CPV' And [%Delivered]>90,[Quantity]*[OnlineCP],
IIf([CPM]='CPU' And [%Delivered]<90,[DeliveredImps]*[OnlineCP],
IIf([CPM]='CPU' And [%Delivered]>90,[Quantity]*[OnlineCP]))))))
hope this helps I spent ages trying to work this out and was helped by someone in this forum to come up with my answer