Hi Ruth
All these people (me included) making comments have forgoten to answer your
post. Sorry.
You can use the item below to show you the method to use then (after you
have it) then you can change it or copy the details to your own tables and
querys. Try this and it will show you how to do it.
Create a table call RuthsTable
Insert these fields
ProducID = AutoNumber
Product = Text
Taxable = Yes/No
PriceExTax = Currency
TaxRate = Number (Note - Field Size = Single / Format = Percent)
Make sure you use the names exactley as I have put them above.
Next create a new query called Ruths Query
Open the query in design view and insert RuthsTable into the top section.
Select View (top of screen)
Select SQL
Cut and paste this into this area
SELECT RuthsTable.ProductID, RuthsTable.Product, RuthsTable.Taxable,
RuthsTable.PriceExTax, RuthsTable.TaxRate,
([PriceExTax]*([TaxRate])+[PriceExTax]) AS PriceWithTax,
([PriceExTax]*[TaxRate]) AS TaxAmount
FROM RuthsTable;
Select View Design. Save and view the query.
You should not "work on" in the table it's just there for design and to
store data.
You can work on the query if you want or create a form for it (this is
better for users.
Oh just a point on percentages. Note that they a fractions of 100 so 5% is
entered as 0.05 (as 1 is 100). 9 would be entered as 0.09 etc etc - standard
UK VAT rate would be entered as 0.175 (17.5%)
Good luck.
--
Wayne
Manchester, England.
Ruth said:
I have a table in which I have the following columns:-
1.Product
2.Taxable?
3.Price ex Tax
4.Tax
5.Price with Tax
I want to just enter data in the first 3 columns.
I want columns 4 and 5 to be calculated automatically using the following
formula:-
Column 4 - if column 2 = yes, then column 3 multiplied by 0.175, otherwise
zero.
Column 5 - column 3 plus column 4.
I'd really appreciate any suggestions on how to do this.
Thank-you.