Taxable and Non-Taxable Items on Invoice

I am using the stock "Order Entry" database that ships with Access. It works for my situation. The only thing I need is to beable to choose whether or not the items in the products table are taxable or non-taxable. I am not a programmer but can follow instructions well. I have added a taxable (yes/no) field to the products table. How do I get this information to properly calculate in the Order Details sub-form and ultimately on the Invoice report?
kegraggAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DarkMorCommented:
kegragg,
     The calculated field on the subform, I assume you already have the field calculating the total, what you need to use is the IIF() function to decide on the correct version of calculation to use:

IIF(tblCustomer.Taxable = Yes, <<Calcwithtax>>,<<CalcNoTax>>)

This statement will look at your yes/no feild setting and THEN / ELSE based on the logic.  Not seeing the form and tables I can not give actual equations.  If you provide more details such as Form/Field Names and location of certain controls like the checkbox for taxable, where your item cost sum is and whatnot I am sure we can give better instructions

D
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jadedataMS Access Systems CreatorCommented:
Hey kegragg!

  If your system is going to work correctly for taxation purposes you will need to do a subtotal of the taxable items BEFORE setting the tax amount.  If you don't you can find yourself over/under applying tax charges on orders.

  in the footer of the form you need a control that sum()'s up the taxable lines to a subtotal

  I do this with a separate Calculated column in the recordsource query.
  TaxableSubT: IIf([taxable]=true,[Cost],0)

  Then you form footer control controlsource property can be
   =Sum([TaxableSubT])

   Sum(TaxableSubT])*[Taxrate] will generally be very close to the correct tax amount (within 1%)  This is as close as you can get without looking up the tax in a tax table. (which would be the most accurate)
   
regards
Jack
0
kegraggAuthor Commented:
I have posted the database on my website. The tables and fields are more complicated than what I can explain in a short space here. The address is www.wilkes.net/access. As you will see, this is the generic database that is created when you choose "New", "Databases Tab", "Order Entry."

The only thing I have done is to re-position items on the Invoice report and to add a "taxable" field to the Products table. I have also populated some of the tables with our information.
0
jadedataMS Access Systems CreatorCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: DarkMor {http:#9898744} & jadedata {http:#9899512}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jadedata
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.