John,
What is the problem you are experiencing. I haven't analysed the
expression you gave in detail, but it would help to know what
specifically is not working for you.
Having said that, it looks like you have each order as separate fields
such as Order 1, Order 2, etc. Is this correct? If so, this would
definitely not be the recommended approach. It would be much better,
and make life a lot easier for you, if you had just one order quantity
field, and each of the person's (up to) 5 pieces of meat are recorded as
separate records. Is there any way you could review your table design
at this stage?
--
Steve Schapel, Microsoft Access MVP
Still having problems with the total cost control source!
This is what i put in
((IIf([Discount 1]=Yes,0.95,1)*[Order 1]*3.52+IIf([Order 1]=0,0,2.5))
+((IIf([Discount 2]=Yes,0.95,1)*[Order 2]*3.52+IIf([Order
2]=0,0,2.5))+((IIf([Discount 3]=Yes,0.95,1)*[Order 3]*3.52+IIf([Order
3]=0,0,2.5))+
((IIf([Discount 4]=Yes,0.95,1)*[Order 4]*3.52+IIf([Order
4]=0,0,2.5))+((IIf([Discount 5]=Yes,0.95,1)*[Order 5]*3.52+IIf([Order
5]=0,0,2.5))
basically this is for a meat distribiting company. Each person can order up
to 5 peices of meat. if the meat they get is 1kg more or less than their
request they get 5% discount. btw Order1 is the actual weight of meat they
are getting. Discount must be done for individual meat and then totaled up.
3.52 - price per kg
2.5 - preperation price
to make sure that if the customer order less than 5 meat, the preperation
price doesnt add on to the total cost of the order i put in the if statement
to reduce the value of that order to 0.
Is what i have done here rite???