Results 1 to 3 of 3
  1. #1
    sash19 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    1

    Calculated field multiple table


    Hey, so I have 2 tables, One for attendance which takes the attendance of an employee in accordance to date & time and another for Attendance Sum which is the total number of days the employee was present in a month. So, I want that whenever someone makes a new record for the attendance of the employee, the value of Attendance Sum gets increased by 1 for the specific month where the employee was present. Both are different tables linked with the Employee ID. Is this possible? If yes, then how?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I personally wouldn't try to save it. A totals query can easily give you the total days per employee per month. If you insist on it, you could run code in the after insert event of the attendance table executing an update query or SQL.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    Do you need two tables for this? Could you not just create a query to count the attendance in a specific month in the main attendance table (assuming there's a separate record for each attendance)?

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

Similar Threads

  1. Calculated Field with Multiple Conditions
    By whisp0214 in forum Queries
    Replies: 2
    Last Post: 04-05-2018, 08:56 AM
  2. Replies: 2
    Last Post: 08-26-2017, 07:51 AM
  3. Use a calculated field to update multiple fields
    By AnneForumer in forum Queries
    Replies: 1
    Last Post: 10-27-2016, 07:05 AM
  4. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  5. Calculated field, data from multiple tables
    By Suzie2012 in forum Programming
    Replies: 7
    Last Post: 06-12-2012, 01:15 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