Results 1 to 7 of 7
  1. #1
    ponzi99 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    3

    Taxable vs non taxable Items/Orders

    Hello I am new to Access has been spending some time learning to build A database for my Small Business, i have some customers who are Tax exempt as well as some line items such as labor of which are not taxed in my state.
    I Have built my form but as of right now I am using a math operator to calculate tax (Subtotal*.08625) But in order for me to properly calculate tax I need to exclude some line items from a sub total each item has a yes no box on weather it is taxed or not. Assuming I would need to build a Query to add all the items that are marked as taxable. But I am unsure of how I would go about building the query

    so under my OrderInvoiceQ I want to find the SUM(ExtPrice) of the that are marked yes taxable with a yes/no Data Type then multiply the SUM by .08625 to get the 8.625% tax that I can add to my Subtotal.

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,750
    In the query Record Soure you would create a new field to gat the Tax Value.

    IIf([Taxable]="Yes",00.08625,0)
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    ponzi99 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    3
    So IIf() acts as an if function? And what your saying is find tax for individual items then add them together?

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,750
    Hi
    If you can upload a zipped copy of the database I will give you an example of how to do this.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,245
    Quote Originally Posted by ponzi99 View Post
    So IIf() acts as an if function? And what your saying is find tax for individual items then add them together?
    IIF() is a function?
    So if your item is marked as taxable, then the rate is 0.8625, else it is zero.
    That way you can calculate the taxable value and add to net value of item.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    ponzi99 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    3
    Quote Originally Posted by mike60smart View Post
    Hi
    If you can upload a zipped copy of the database I will give you an example of how to do this.
    If I did it correctly the Data Base should be Attached to this Comment Apologies for the delay
    Attached Files Attached Files

  7. #7
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,750
    Hi

    See the modified Db attached

    In the Subform of the Form that opens at startup look at the Record Source to see the new field added "TaxRate"
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 02-13-2018, 07:06 PM
  2. Replies: 4
    Last Post: 01-24-2017, 05:09 PM
  3. Replies: 2
    Last Post: 11-01-2016, 09:04 AM
  4. Replies: 7
    Last Post: 10-25-2011, 08:32 PM
  5. Replies: 8
    Last Post: 08-05-2011, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums