Results 1 to 3 of 3
  1. #1
    brbrooks73 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    1

    Calculating Net Pay for Salary & Hourly Employees

    Trying to calculate net pay for salary and hourly employees. I am able to get them to calculate each in their own separate expression but when I combine them and run it I get blanks. Not sure what I am doing wrong. here is the two expression I created.



    Taxes: [Payroll Info]![PAY_FEDTX]+[Payroll Info]![PAY_STATETX]+[Payroll Info]![PAY_FICA]+[Payroll Info]![PAY_SAVINGS]

    Net_Pay: [Payroll Info]![PAY_MONSALARY]-[Taxes] And ([PAY_HRRATE]*[PAY_HRSWORKED])-[Taxes]

    I appreciate any assistance anyone can give me. I have been working on this for the past 3 days.

    Thanks,
    Brandi

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    You cant run them together as you are referencing Taxes in Net_Pay when Taxes doesn't exist yet. In your first query, run Taxes and also create a blank field. Then run an update query with Net_Pay to update the field you created in the first one.

    Not sure if there's another way around it.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    you have two different types of employees and if you have a field that indicates if they are hourly or salaried you can do a formula like this:

    iif(EmpType = "H", <hourly calcualation>, iif(emptype = "S", <Salary calcuation>, null))

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

Similar Threads

  1. Count how many records hourly?
    By shootnow in forum Queries
    Replies: 1
    Last Post: 08-02-2011, 06:59 PM
  2. Code for calculating employees overtime pay
    By Nixx1401 in forum Access
    Replies: 17
    Last Post: 05-05-2011, 05:13 PM
  3. Replies: 1
    Last Post: 11-23-2010, 09:16 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

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