Results 1 to 5 of 5
  1. #1
    reneerita is offline Novice
    Windows XP Access 2016
    Join Date
    Sep 2017
    Posts
    2

    Calculate FICA for Employees

    I have, using tables and queries, created a report that calculates gross wages of employees. It also does the calculations for SS and Medicare deductions. I also have the federal income tax tables as tables with fields for Minimum Wages, Maximum Wages, and Total Tax Owed. I want to link Employees gross wages to the appropriate tax table and have it find the total tax owed for that employee within the Min and Max range.

    Basically, I want a statement that does this:

    If [Employees]![Allowances]=0&[Employees]![Status]="Single"or"Married - at Higher Single Rate", Sum(([Weekly Pay 1]![Weekly Regular Pay]+[Weekly Pay 1]![Weekly Overtime Pay])+Sum((Weekly Pay 2]![Weekly Regular Pay]+[Weekly Pay 2]![Weekly Overtime Pay]) ....



    Is used on table [Tax Table Single 0] fields [Minimum Wages] and [Maximum Wages] to find which row to = the third field of [Total Tax Owed].

    Tax Table Single 0 has 3 fields: Minimum Wages, Maximum Wages, and Total tax Owed. I want the Gross Wages I generated using the sums mentioned above to also pull from the linked employee's Status (single, married - at higher single rate, married) and Allowances (so pull from the right table: ex. Tax Table Single 0, Tax Table Married 2, etc.) to find the right row in the range between the two fields to give me the right row of the Total Tax Owed field. Can anyone help?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    A DLookup() might be the easiest approach.

    DLookup("[Total Tax Owed]", "tablename", [GrossWages] & " BETWEEN [Minimum Wages] AND [Maximum Wages]")

    Setting the tablename reference is complicated by having multiple tax tables. A normalized structure would be a single table with fields for status and allowance. A UNION query could reorganize the multiple tax tables into a single dataset.

    However, based on the tax table names you referenced, perhaps:

    DLookup("[Total Tax Owed]", "[Tax Table " & [Status] & " " & [Allowance] & "]", [GrossWages] & " BETWEEN [Minimum Wages] AND [Maximum Wages]")


    Instead of reinventing the wheel I would and have used OTS software for accounting, including payroll. QuickBooks is a robust and economical option.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    reneerita is offline Novice
    Windows XP Access 2016
    Join Date
    Sep 2017
    Posts
    2
    Thank you. I will check as soon as I get back in on Monday. I actually do currently have the Tax Table set up as only 2 tables. One has the Max, Min, Allowances, and Tax Owed for single and the other is the same for married. My Employee table has a field for number of allowances and a lookup field with 3 options: Married, single, and Married at higher single rate. I was just confused how I would like my employee table number of allowances with the tax table and pull only from the table for married vs single. Then, using the gross wages calculated through a series of queries and combination with tables for hours, hourly wages, etc. I thought it might be easier if I created 11 tables for single and 11 for married based on 0-10 allowances. Is there a way to take my present set up and link it to a single table with the four fields I have now and add a field for married or single?

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would agree with June. Using off the shelf (OTS) software would be easiest.

    Quote Originally Posted by reneerita View Post
    I have, using tables and queries, created a report that calculates gross wages of employees. It also does the calculations for SS and Medicare deductions. I also have the federal income tax tables as tables with fields for Minimum Wages, Maximum Wages, and Total Tax Owed. I want to link Employees gross wages to the appropriate tax table and have it find the total tax owed for that employee within the Min and Max range.

    Basically, I want a statement that does this:

    If [Employees]![Allowances]=0&[Employees]![Status]="Single"or"Married - at Higher Single Rate", Sum(([Weekly Pay 1]![Weekly Regular Pay]+[Weekly Pay 1]![Weekly Overtime Pay])+Sum((Weekly Pay 2]![Weekly Regular Pay]+[Weekly Pay 2]![Weekly Overtime Pay]) ....
    You really have different tables for each week???


    I would also have a field on the Fed tax table for the tax year.
    Unless you intend to have a different tax table for each year? Then you would have to edit the calculations each year.....

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't think can establish a link based on a range. The DLookup will have to be adjusted for however many tax tables. The WHERE ARGUMENT criteria will have to be expanded. For two tables remove Allowance from the dynamic tablename construct. For one table the tablename will be static and will need filter criteria for Status and Allowance.

    However, I just realized the Status is not as straightforward as I thought. You have 3 Status and 2 tables.

    DLookup("[Total Tax Owed]", "[Tax Table " & IIf([Status] LIKE "*Single*", "Single", "Married") & "]", [GrossWages] & " BETWEEN [Minimum Wages] AND [Maximum Wages] AND Allowance=" & [Allowance])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. How to assign employees
    By rjayb118 in forum Access
    Replies: 5
    Last Post: 09-26-2016, 05:19 PM
  2. Employees in same entity
    By cathal1292 in forum Access
    Replies: 3
    Last Post: 05-05-2014, 02:26 PM
  3. No More Than 4 Employees Allowed on Form
    By burrina in forum Access
    Replies: 1
    Last Post: 10-25-2012, 10:54 PM
  4. Add Multiple Employees to a Training
    By Voltzwagon in forum Forms
    Replies: 1
    Last Post: 01-29-2010, 10:53 AM
  5. Replies: 2
    Last Post: 12-15-2009, 10:41 AM

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