Hi Everyone,
I am going to try and explain what I want and I hope that it makes sense.
First I have a database that contains multiple tables (Listed below is only the fields needed).
Harbour Table
Harbour Code
Harbour Name
Facility Table
Facility Code
Harbour Code
Inspection Table
Inspection Number
Facility Code
Date of Inspection
When I join the tables together in a query the data will look something like this. (Harbour Code, Harbour Name, Facility Code, Inspection Number and Date of Inspection)
1 Bay Bulls 990 200 2005-11-30
1 Bay Bulls 990 201 2004-11-30
4 Bonavista 991 202 2004-11-29
Now I would like the query to list all the harbours and facility codes that have not received inspections within the last year. When I run the query the Bay Bulls Inspection 201 record (along with the Bonavista record)appears but due to an inspection being performed on 2005-11-30 to the same facility code (990) only the Bonavista record should be listed.
Can someone please help me?
Thank you in advance!
I am going to try and explain what I want and I hope that it makes sense.
First I have a database that contains multiple tables (Listed below is only the fields needed).
Harbour Table
Harbour Code
Harbour Name
Facility Table
Facility Code
Harbour Code
Inspection Table
Inspection Number
Facility Code
Date of Inspection
When I join the tables together in a query the data will look something like this. (Harbour Code, Harbour Name, Facility Code, Inspection Number and Date of Inspection)
1 Bay Bulls 990 200 2005-11-30
1 Bay Bulls 990 201 2004-11-30
4 Bonavista 991 202 2004-11-29
Now I would like the query to list all the harbours and facility codes that have not received inspections within the last year. When I run the query the Bay Bulls Inspection 201 record (along with the Bonavista record)appears but due to an inspection being performed on 2005-11-30 to the same facility code (990) only the Bonavista record should be listed.
Can someone please help me?
Thank you in advance!