Hi, I have set up a new datasheet for an invoicing sytem I am currently working on - I have the following fields for four calculations I need to do
Quantity
UnitPrice
NetAmount
VATRate
VATAmount
TotalNetAmount
TotalVATAmount
The first calculation is Quantity x Unit Price
so in the "NetAmount" text box's Control Source I entered
=[Quantity]*[UnitPrice]
which works fine and gives me the correct total in the "NetAmount" Box
Then to add VAT I added the following to the "VATAmount" Text box's Control Source
=CLng([NetAmount]*[VATRate]*100)/100
which also works fine and gives me the correct total in the "VATAmount" Box
Now I need to add the two seperate amounts together so I have two text boxes in the Form Footer - One called "TotalNetAmount" and the other called "TotalVATAmount"
For the "TotalNetAmount" I added the following to the Control Source
=Sum([Quantity]*[UnitPrice])
Which again works correctly
but it is with the "TotalVATAmount" I am having the problems - no matter what I try I get either an error, nothing or just 0.
Any sugestions would be much appreciated
Many Thanks
James
Windows XP
Office 2003