Results 1 to 10 of 10
  1. #1
    fisseha is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jan 2017
    Location
    ethiopia
    Posts
    5

    Carried forward balance


    Someone please help!

    I am trying to do employee tax for the following:
    No. Salary Range (ETB) Tax Rate Deduction (ETB)
    1. 0 - 600 Birr Non-Taxable -
    2. 601-1,650 Birr 10% 60 Birr
    3. 1,651 - 3,200 Birr 15% 142.50 Birr
    4. 3,201 - 5,250 Birr 20% 302.50 Birr
    5. 5,251 - 7,800 Birr 25% 565 Birr
    6. 7,801 - 10,900 Birr 30% 955 Birr
    7. Over 10,900 Birr 35% 1,500 Birr
    Please I am a complete novice in VBA and your help would be highly appreciated if the code would be just copy and paste.
    Thanks in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    You don't need vb. you can do it with queries.
    the table above needs the range in 2 fields, SalaryStart,SalaryEnd.
    the query will have the data table and the tax range table,
    criteria EMP.salary >= tTaxRate.SalaryStart and EMP.salary <= tTaxRate.Salaryend

  3. #3
    fisseha is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jan 2017
    Location
    ethiopia
    Posts
    5
    I am totally lost and appreciate If anyone's help in this matter. Preferably in VBA please.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    You've been given the answer. It's a basic query that requires no VBA. Sorry to be blunt, but investigate Ranmans sugestion. Ask away if you have trouble...

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @fisseha,
    First, welcome to the forum.

    Next, you didn't ask a question. Remember, you are working on the dB - we have never seen it and don't know what you are having problems with.

    We need to know what the problem is, the data you are working with and the expected results.
    It looks like if a salary is in the range of 601-1,650 Birr, the tax rate should be 10%. But for the deduction to be 60 Birr, the salary would be 600Birr, which is non-taxable.

    Please explain your business like you would to a 10 year old, then state your question with the raw data and the expected results.

  6. #6
    fisseha is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jan 2017
    Location
    ethiopia
    Posts
    5
    Thanks so much for your response. What I was trying to do is that since the salary info is there when I enter hours worked access to calculate and give me net pay if possible.
    I appreciate you help.

  7. #7
    fisseha is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jan 2017
    Location
    ethiopia
    Posts
    5
    Well I tried it and didn't work. If it is basic show it in practice sorry to be blunt.

  8. #8
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    create a table tbltax with fields
    Taxlower
    Taxupper
    taxrate

    Then the query should look something like

    Code:
    SELECT tblsalary.salary, tbltax.taxrate
    FROM tbltax, tblsalary
    WHERE (((tblsalary.salary)>[tax]![tblsalarystart] And (tblsalary.salary)<[tbltax]![salaryend]));
    You can use a similar technique to get deduction then use a final calculated column to do the maths

  9. #9
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    I think the etb is a fixed amount paid irrespective if the tax rate i.e.

    salary=3000
    so in range 1651-3200
    ergo tax rate=15%; =450+142.5 etb; =592.5 total tax; =net pay 2407.5

  10. #10
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    that's not blunt, you should ask if you don't know.

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

Similar Threads

  1. How To Get Running Balance Of Customer with last balance
    By muhammadirfanghori in forum Access
    Replies: 1
    Last Post: 10-25-2016, 03:31 PM
  2. Carry Forward / Opening Of Balance
    By aamer in forum Access
    Replies: 4
    Last Post: 03-05-2016, 12:28 PM
  3. carry forward of balance
    By iamvenu in forum Access
    Replies: 1
    Last Post: 02-07-2016, 07:56 AM
  4. General Ledger Query With Opening Balance and Running Balance
    By muhammadirfanghori in forum Queries
    Replies: 3
    Last Post: 03-12-2015, 07:17 AM
  5. Balance forward generation on Petty Cash Report
    By Jmeyering in forum Reports
    Replies: 10
    Last Post: 11-09-2012, 03:05 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