Hi,
I'm currently working on a database to hold records of students. Each student may take many suspensions from their studies for a length of time.
I have 2 tables which are of relevance to this problem, students and suspensions. Below is the bare minimum attributes which are needed to make the links work.
Students...
Student ID
Student Name
Suspensions...
Suspension ID
Student ID
Study End
Study Recommence
The problem I'm having with this is trying to display who is currently an active student (not on a suspension) and those which are currently on a suspension of studies.
I have a query which shows all students which are on a suspension complete, and it works fine. I can't however get a query working to show those who are not currently on a suspension of studies. Basically, the query needs to show students who have no suspensions at all, and those where todays date does not lie between Study end and Study Recommence.
Some sample data to help....
Full Name | Study End | Study Recommence
David Daw 12/1/1998 12/3/2000
David Daw 16/4/2000 16/8/2000
David Daw 7/6/2003 7/10/2003
Lesley Ch 12/2/2003 12/11/2003
The problem seems to be that the query that I have right now is that my query discards records where the suspension is current, which is correct, but still displays past and future suspensions that are not current.
Thanks in advance for any help, this has completely baffled me and my collegue!
David Dawson
I'm currently working on a database to hold records of students. Each student may take many suspensions from their studies for a length of time.
I have 2 tables which are of relevance to this problem, students and suspensions. Below is the bare minimum attributes which are needed to make the links work.
Students...
Student ID
Student Name
Suspensions...
Suspension ID
Student ID
Study End
Study Recommence
The problem I'm having with this is trying to display who is currently an active student (not on a suspension) and those which are currently on a suspension of studies.
I have a query which shows all students which are on a suspension complete, and it works fine. I can't however get a query working to show those who are not currently on a suspension of studies. Basically, the query needs to show students who have no suspensions at all, and those where todays date does not lie between Study end and Study Recommence.
Some sample data to help....
Full Name | Study End | Study Recommence
David Daw 12/1/1998 12/3/2000
David Daw 16/4/2000 16/8/2000
David Daw 7/6/2003 7/10/2003
Lesley Ch 12/2/2003 12/11/2003
The problem seems to be that the query that I have right now is that my query discards records where the suspension is current, which is correct, but still displays past and future suspensions that are not current.
Thanks in advance for any help, this has completely baffled me and my collegue!
David Dawson