I need to build a function that calculates the liters sold within the month for a given client and depending on the quantity sold from the beginning of the month till the day of the order to calculate the liters for that client and with the function FncExtra to determine the discount. For example for sales up to 205 liters 5 percent diso######, between 205 and 300 liters 7 percent discount. I have difficulties to determine the sales for a given client and I do not know in principle how to involve the montly sales in that acount.My original function is :
Private Function FncExtra()
If Me!liters.Value < 205 Then
Me!UnitPrice = Me!reseller – Me!reseller * 5 / 100
ElseIf Me!liters.Value between 205 and 300 then
Me!UnitPrice = Me!reseller – Me!reseller * 7 / 100
End If
End Function
However this is fo the whole wuantity and odes not take into account the month. Could somebody help me with ths complicated task ?
-
calculating discount (Access 2000)
- This topic has 11 replies, 2 voices, and was last updated 18 years ago.
AuthorViewing 1 reply threadAuthorViewing 1 reply thread