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.