O
oldstonebuddha
I have been asked to pull some summary data out of a table, and due to the
structure, can't seem to get it. Any help would be appreciated.
The fields in the table look something like this:
TestID TestCode Area CFU OrgID1 OrgID2 OrgID3 OrgID4 OrgID5 OrgID6 OrgID7
OrgID8 OrgID9 OrgID10 Notes
Each record represents a microbiology monitoring test. The fields OrgID1,
OrgID2, OrgID3 etc. contain the name of the organism that was identified from
that test. The record has room for up to ten organisms.
Here's the problem: I need to summarize how many times a particular organism
has come up, but it may be in different ID fields.
For example, if I wanted the number of times ""Bacillus spp." has come up:
Record 1 - OrgID1 = "Bacillus spp."
Record 1 - OrgID2 = "CNS"
Record 2 - OrgID1 = "Staph A."
Record 2 - OrgID2 = "Bacillus spp."
Record 3 - OrgID1 = "Staph A."
Record 3 - OrgID2 = "CNS"
Record 3 - OrgID3 = "Bacillus spp."
The answer I'm looking for in this example is two. But I can't seem to
design a query that will look for a particular organism across different
fields. I tried a select query that used ="Bacillus spp." or Is Null as the
critera for the OrgIDFields. But if it doesn't find "Bacillus spp." in the
OrgID1 field, then it won't find it in the OrgID2 field.
Help! I've also tried pivot tables, with the same luck.
Thanks!
Scott D. Collins
structure, can't seem to get it. Any help would be appreciated.
The fields in the table look something like this:
TestID TestCode Area CFU OrgID1 OrgID2 OrgID3 OrgID4 OrgID5 OrgID6 OrgID7
OrgID8 OrgID9 OrgID10 Notes
Each record represents a microbiology monitoring test. The fields OrgID1,
OrgID2, OrgID3 etc. contain the name of the organism that was identified from
that test. The record has room for up to ten organisms.
Here's the problem: I need to summarize how many times a particular organism
has come up, but it may be in different ID fields.
For example, if I wanted the number of times ""Bacillus spp." has come up:
Record 1 - OrgID1 = "Bacillus spp."
Record 1 - OrgID2 = "CNS"
Record 2 - OrgID1 = "Staph A."
Record 2 - OrgID2 = "Bacillus spp."
Record 3 - OrgID1 = "Staph A."
Record 3 - OrgID2 = "CNS"
Record 3 - OrgID3 = "Bacillus spp."
The answer I'm looking for in this example is two. But I can't seem to
design a query that will look for a particular organism across different
fields. I tried a select query that used ="Bacillus spp." or Is Null as the
critera for the OrgIDFields. But if it doesn't find "Bacillus spp." in the
OrgID1 field, then it won't find it in the OrgID2 field.
Help! I've also tried pivot tables, with the same luck.
Thanks!
Scott D. Collins