Solved

Taxable and Non-Taxable Items on Invoice

Posted on 2003-12-08
5
423 Views
Last Modified: 2012-08-13
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?
0
Comment
Question by:kegragg
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
DarkMor earned 250 total points
ID: 9898744
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
 
LVL 32

Assisted Solution

by:jadedata
jadedata earned 250 total points
ID: 9899512
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
 

Author Comment

by:kegragg
ID: 9906610
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
 
LVL 32

Expert Comment

by:jadedata
ID: 10267142
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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now