Results 1 to 3 of 3
  1. #1
    MANDYE is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2016
    Posts
    1

    Using a calculated field in a table, but I need it to do 2 different calculations


    Hi,
    I have a table that details all of the sales information daily for several different restaurants. I used a "Calculated_Tax" field to indicate the amount of sales tax to be collected, the only problem is that in July 2015, our county increased the sales tax percentage. If I updated the field to the new sales tax amount, all of my previous data shows big sales tax shortages.
    Can I separate the tables by date, correct the calculated field in each, and then link them so that my queries will pull data from both tables?
    Suggestions?
    Thank you so much!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    This is why you must have a tTaxRate table, to store the changing rates.
    the tax rate is then added to the table record as a value for that date.
    THIS is used as a calc.

    you don't separate data tables by date.

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    It's also why you should not use a calculated field (which can only reference data within that record) - although in this instance I would recommend you do need a fields to put the calculated value for all time (one each for percentage and calculated value) - you would manage this in your form for creating invoices.

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

Similar Threads

  1. Add Calculated Field to Table
    By jmccon in forum Access
    Replies: 1
    Last Post: 10-12-2015, 06:23 AM
  2. Replies: 1
    Last Post: 01-31-2015, 11:07 AM
  3. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  4. Replies: 3
    Last Post: 02-13-2013, 10:15 AM
  5. Replies: 2
    Last Post: 10-24-2012, 02:53 PM

Tags for this Thread

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