Robbie1974
New member
- Local time
- Today, 19:22
- Joined
- Mar 31, 2005
- Messages
- 8
I'm having trouble with some calculations on my form.
It's a form for making quotes.
All the articles in the database have quantity discounts and there is sometimes an extra customer discount on top of that.
For example: if a customer buys 1 pack of paper he pays $4.36
if he buys 10 packs he pays $3.92 (10%) and if he buys 50 he pays $3.49(20%)
The discount are located in the listbox where I lookup my articles. When I enter the above example it gives me 10% startting from 2 packs instead of 10 and from 6 packs it gives me 20% instead of 50 packs.
Is there anyone that can help?
This is my iif code:
toptop = highest discount minus 10%
korting = extra customer discount
[Referentie].column(2) = discount allowed y/n
[Referentie].column(5) = highest quantity (50)
[Referentie].column(6) = highest discount(20)
[Referentie].column(3) = lowest quantity (10)
[Referentie].column(4) = lowest quantity (10)
Thanks for suggestions.
It's a form for making quotes.
All the articles in the database have quantity discounts and there is sometimes an extra customer discount on top of that.
For example: if a customer buys 1 pack of paper he pays $4.36
if he buys 10 packs he pays $3.92 (10%) and if he buys 50 he pays $3.49(20%)
The discount are located in the listbox where I lookup my articles. When I enter the above example it gives me 10% startting from 2 packs instead of 10 and from 6 packs it gives me 20% instead of 50 packs.
Is there anyone that can help?
This is my iif code:
Code:
=IIf([Forms]![frmOfferte]![toptop]=Waar And [Referentie].column(2)="N";round([prijs]*(1-[Referentie].column(6)/100)*(1-10/100);2);IIf([qty]>=[Referentie].column(5);round(([prijs]*(1-[Referentie].column(6)/100))*(1-[Korting]/100);2);IIf([qty]>=[Referentie].column(3);round(([prijs]*(1-[Referentie].column(4)/100))*(1-[Korting]/100);2);IIf([prijs]=[prijs];round([prijs]*(1-[Korting]/100);2);round([prijs];2)))))
toptop = highest discount minus 10%
korting = extra customer discount
[Referentie].column(2) = discount allowed y/n
[Referentie].column(5) = highest quantity (50)
[Referentie].column(6) = highest discount(20)
[Referentie].column(3) = lowest quantity (10)
[Referentie].column(4) = lowest quantity (10)
Thanks for suggestions.