Results 1 to 5 of 5
  1. #1
    Chevy757IT is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2015
    Posts
    16

    Multiple records validating a number off another record

    I have a table that states how many hours it takes to teach a course.

    Then I have another table where my instructors are going to come in and input how many hours they have instructed, some courses have multiple instructors teach a lesson.

    What I want is when the instructors input their hours it adds them all up for each course date and validates it to see if the max has been reached.

    So say instructor "A" inputs he instructed 40 hours and instructor "B" instructed 50 hours and the course is only 80 hours course then when the second instructor inputs his hours it has an error.


    I currently have a table with general course information that gives the name of the course and then how many hours it is.



    I have a table which has the course schedule that has the course name, course serial number and dates for when it convenes and grades

    I have a table that the instructor inputs their hours based on a look up to the course schedule.

    How would I go about doing this? I searched the forum and couldn't find the right answer.
    Last edited by June7; 01-09-2015 at 01:29 PM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    So each instructor hours input would be a separate record?

    Can build an aggregate GROUP BY (Totals) query that sums the hours for each course. Join this query to the Courses table by joining on the CourseID fields. This will put the course authorized hours and the instructor input hours side-by-side for review.

    If you want this hours check to occur in real-time while instructors input their hours, will probably need to use VBA code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Chevy757IT is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2015
    Posts
    16
    I am in the US Navy and not a expert at Access. How do you go about building an aggregate Group by totals. Then how to join it to Courses table?

  4. #4
    Chevy757IT is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2015
    Posts
    16
    Yes each instructor would record their hours for each course on a separate record.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    Use query builder. Really basic Access functionality. Access Help has guidelines for building an aggregate query. Join aggregate query to Courses table in another query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-27-2014, 03:21 AM
  2. Replies: 5
    Last Post: 12-16-2013, 03:23 PM
  3. Replies: 3
    Last Post: 09-19-2012, 07:34 AM
  4. combining multiple records into one record
    By RedGoneWILD in forum Queries
    Replies: 5
    Last Post: 07-28-2010, 11:19 AM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 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