Results 1 to 2 of 2
  1. #1
    jalals is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    24

    Salary with Increment Componant not updatable

    Hi
    Your help needed please
    It could have been done easily in Update Query on which I tried a lot but update query does not work as it gives the error message “ Operations must use updatable query” So I decided to use VBA on which I have little knowledge frankly speaking.
    I am designing an Employee Salary module for a New School. The school remains closed during Winter i.e. from 15th Dec. to end of Feb next Year (28/29 Feb). The school on the last day of each month normally disburses the salary to its employees even during the winter season (they call it Winter Salary from 15th Dec to 28/29Feb next year) Subject to the condition that the employee has completed minimum service of 184 days up to 15th Dec.(i.e. if he was appointed upto 15th June). And if his service is below 184 days he is entitled neither for Winter Salary nor for the next increment.
    The School releases the yearly increment as on 31st January every year irrespective of hiredate.
    I have created Employee table with following fields
    1. EmployeeID ; DataType Autonumber (pk)
    2. FirstName ; DataType (txt)
    3. BasicSalary ; Datatype (Number)
    4. NewBasicSalary;– Datatype (number)
    5. HireDate ; DataType (date)
    6. LastIncrementDate; DataType (Date) It should be give some value at the beginning
    7. NextIncrementDate ; Datatype (Date)

    IncrementAmount is calculated as (BasicSalary + 10% of BasicSalary)
    On 31st January each year NewBasicSalary =BasicSalary+incrementAmount
    (Next increment will fall exactly one year after Last Increment Date I have used the formula as NextIncrementDate: (DateAdd("m",12,[lastincrementDate]))
    SalaryMonthsPaid: (DateDiff("m",[lastIncrement],Date()) [ Number of months for which Salary paid)



    Formula should been :– If SalaryMonthsPaid>12
    then update NewBasicSalary with (BasicSalary+incrementAmount)
    Update LastIncrementDate with NextIncrementDate

    Next Year the IncrementAmout will increase as per rate already fixed.
    Simultaneously the system should update NewBasicSalary, LastIncrementDate with Next IncrementDate and also the IncrementAmount.

    Thanks
    Jalal

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Is the BasicSalary per Annum or per month?
    Where is the "IncrementAmount" stored?

    Would you post the code you have written?

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

Similar Threads

  1. How to calculate salary in parts
    By jalals in forum Access
    Replies: 6
    Last Post: 05-17-2012, 12:57 PM
  2. Access salary help needed
    By Computer_gal in forum Access
    Replies: 10
    Last Post: 04-16-2012, 01:18 PM
  3. Where to Put Instructor Salary?
    By alpinegroove in forum Database Design
    Replies: 54
    Last Post: 01-03-2012, 05:37 PM
  4. Calculating Net Pay for Salary & Hourly Employees
    By brbrooks73 in forum Queries
    Replies: 2
    Last Post: 08-16-2011, 12:15 PM
  5. Replies: 5
    Last Post: 11-12-2010, 12:10 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