What should have been a simple task is now a pain in the rear end.
I have an invoice form(InvoiceHeader) with a continuous subform(InvoiceSub) to enter goods into which works great. After i enter a product the retail price is automatically filled in TxtRetailPrice and then i enter a quantity that the customer wants, after that there is a discount field where i enter an amount which is shown in percent format.
All works fine so far until it comes to calculating the line total.
so if the price of part1 is £12 and quantity is 2 total is £24
If discount = 5% then line total should be £22.80
the totals i get is £23.50 ,£0.01 or £0.00 depending on which of the following formula i have in the txtLineTotal textboxes control source:-
= [discount]/100 * ([TxtRetail] * [Quantity])
= (([discount]/100) *([txtretail]*[Quantity]))
= ([txtretail] * [Quantity]) * ([discount]/100)
obviously im doing something wrong but for the life of me i cant find out where.
Thanks in advance for any help
Gareth
I have an invoice form(InvoiceHeader) with a continuous subform(InvoiceSub) to enter goods into which works great. After i enter a product the retail price is automatically filled in TxtRetailPrice and then i enter a quantity that the customer wants, after that there is a discount field where i enter an amount which is shown in percent format.
All works fine so far until it comes to calculating the line total.
so if the price of part1 is £12 and quantity is 2 total is £24
If discount = 5% then line total should be £22.80
the totals i get is £23.50 ,£0.01 or £0.00 depending on which of the following formula i have in the txtLineTotal textboxes control source:-
= [discount]/100 * ([TxtRetail] * [Quantity])
= (([discount]/100) *([txtretail]*[Quantity]))
= ([txtretail] * [Quantity]) * ([discount]/100)
obviously im doing something wrong but for the life of me i cant find out where.
Thanks in advance for any help
Gareth