I have a database that tracks tape backups. We, like most people, have many sites (68) that do tape backups each night to a tape. There are 20 tapes - Mon-Fri in 4 different colors, one color for each week. Blue Monday, Pink Friday, etc. The sites then send the tapes to me for temporary offsite storage and I have to catalogue them. I enter the data into a table called tTapeReceived. The fields are as follows:
Date (Date I received the tape)
Site (Which site the tape belongs to)
TapeReceived (Which tape I received - i.e. Blue Monday)
CorrectTape (What tape I SHOULD have received)
I have another table called tSites that has a single field [site] that lists the sites.
I have no problem running queries to find out about the tapes that I HAVE received. The problem is that I may need to know on what days I DIDN'T received a correct tape. That means I need to find out on what date a record does not exist that includes the following:
The date and branch that I specify where the TapeReceived and CorrectTape are equal.
Since I have the tSites table, there should be a way using SQL to check each date against tSites and report any time it does not find a record with that date, site, and identical TapeReceived and CorrectTape fields, retuning Site and Date.
I need to find a way in SQL (not VBA if it can be avoided)to do this. Thank you in advance for any assistance.
Date (Date I received the tape)
Site (Which site the tape belongs to)
TapeReceived (Which tape I received - i.e. Blue Monday)
CorrectTape (What tape I SHOULD have received)
I have another table called tSites that has a single field [site] that lists the sites.
I have no problem running queries to find out about the tapes that I HAVE received. The problem is that I may need to know on what days I DIDN'T received a correct tape. That means I need to find out on what date a record does not exist that includes the following:
The date and branch that I specify where the TapeReceived and CorrectTape are equal.
Since I have the tSites table, there should be a way using SQL to check each date against tSites and report any time it does not find a record with that date, site, and identical TapeReceived and CorrectTape fields, retuning Site and Date.
I need to find a way in SQL (not VBA if it can be avoided)to do this. Thank you in advance for any assistance.