Results 1 to 3 of 3
  1. #1
    sephiroth2906 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    73

    Find employee, display name, calculate retirement

    Hello all!

    I have an employee database, and one of the things I want it to do is calculate retirement eligibility. What I want it to do is:

    When I find the employee I want, I want a label to display their first name and last name by taking the value from Employee_First_Name and Employee_Last_Name from the table.

    I then want it to retrieve the birth date from Birth_Date from the table, calculate the age (I actually have that calculation figured out) and display it in another label. Then take the years of service, calculated from Employment_Date and display that (same calculation)

    Then I would like to add those two numbers.

    Actually, I know how to do most of this if it were entered directly in the form, but I do not know how to fetch this information from the table.

    Thanks in advance for the help!

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    I would suggest diving into queries and how to use them. The calculations you would use on the form would be very similar (if not identical) to the ones you would use in the query.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    As stingaway suggested, use a query to select the data you want from your table. Work with it and develop the calculated fields you need. Save that query.
    Then create a Form and bind it to your query.

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

Similar Threads

  1. Replies: 5
    Last Post: 03-03-2011, 03:56 PM
  2. Append employee name with '
    By jgelpi16 in forum Programming
    Replies: 8
    Last Post: 02-11-2011, 09:30 AM
  3. Employee Tracking
    By nycon in forum Access
    Replies: 6
    Last Post: 10-27-2010, 05:42 PM
  4. Calculate Time and Display Records
    By w2vijay in forum Reports
    Replies: 1
    Last Post: 02-12-2010, 01:58 AM
  5. Replies: 0
    Last Post: 08-07-2008, 07:02 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