Hi 
I am assembling an access DB for a flight school. Its quite a basic DB as i'm new to Access, though seasoned with Excel.
Some background. At a flight school, you can either fly with an instructor, known as dual, or by yourself, known as solo. Each time you fly, you will learn a particular lesson, called a sequence.
My DB collects each flight as it is completed, recording all the relevant information about each student, as well as the sequence and how long the flight was in hours, either dual or solo. I have fields for all the obvious things like name, date of flight etc. I also have seperate fields for Flight duration which are Dual or Solo. The last field is 'standard', which is a measure of whether the student successfully completed that sequence or failed.
My query is this. We would like a system to pick up when students are getting behind. It should take you no more than 16 hours to go solo. So I need a query that will output all the students who have flown more than 16 hours dual, but have not completed the sequence "T1 - First solo". That's the easy one. The more difficult query I'll illustrate with a working example;
You should complete the sequence "T2 - T/A Solo" by 25 hours. A student has done 30 hours of dual flying and 3 hours of solo flying, but has not completed that particular sequence yet.
How could I write a query so that the output is all the names of students who exceed these criteria? I have a whole series of performance gates I need to create, but I hope that in learning to do 1, I can apply the principles to all the others.
I apologize for the length of my question.
Thanks, Ben.

I am assembling an access DB for a flight school. Its quite a basic DB as i'm new to Access, though seasoned with Excel.
Some background. At a flight school, you can either fly with an instructor, known as dual, or by yourself, known as solo. Each time you fly, you will learn a particular lesson, called a sequence.
My DB collects each flight as it is completed, recording all the relevant information about each student, as well as the sequence and how long the flight was in hours, either dual or solo. I have fields for all the obvious things like name, date of flight etc. I also have seperate fields for Flight duration which are Dual or Solo. The last field is 'standard', which is a measure of whether the student successfully completed that sequence or failed.
My query is this. We would like a system to pick up when students are getting behind. It should take you no more than 16 hours to go solo. So I need a query that will output all the students who have flown more than 16 hours dual, but have not completed the sequence "T1 - First solo". That's the easy one. The more difficult query I'll illustrate with a working example;
You should complete the sequence "T2 - T/A Solo" by 25 hours. A student has done 30 hours of dual flying and 3 hours of solo flying, but has not completed that particular sequence yet.
How could I write a query so that the output is all the names of students who exceed these criteria? I have a whole series of performance gates I need to create, but I hope that in learning to do 1, I can apply the principles to all the others.
I apologize for the length of my question.
Thanks, Ben.
Last edited: