I have a table that tracks tape backups for multiple locations. There are 65 locations. The table consists of a single [Date] field, a single [EnteredBy] field, and 130 fields (2 per site). We'll start with the first site, whose site name is "001". It's two fields are [001a] and [001b]. [001a] is an option group with values of 1-4 and [001b] is a memo field for taking notes on the backup. Here's the delimma. I need a query that, for a specified date, will return each "a" field that has a specified value (1-4) AND its corresponding "B" field. It's the AND part that's getting me. I can return all the "A" fields with a value of 2 or something like that. What I can't figure out is how to tell it that, when you return 034a, also return 034b.
A couple of side notes:
The sites are all 3 digits or 3 digits followed by a letter (i.e. 009b) but they are not in nice, sequential order (i.e., there is not a 010, 019, etc.) so any sort of programmed loop couldn't rely on that.
I plan on creating a report based on this query. How can I determine in the report which site an "A" and "B" field are associated with?
I realize this is a bit convoluted, so I am open to any suggestions on how to change the overall layout of what I'm doing.
Thanks in advance for any help
A couple of side notes:
The sites are all 3 digits or 3 digits followed by a letter (i.e. 009b) but they are not in nice, sequential order (i.e., there is not a 010, 019, etc.) so any sort of programmed loop couldn't rely on that.
I plan on creating a report based on this query. How can I determine in the report which site an "A" and "B" field are associated with?
I realize this is a bit convoluted, so I am open to any suggestions on how to change the overall layout of what I'm doing.
Thanks in advance for any help