Pangloss14
Registered User.
- Local time
- Today, 13:59
- Joined
- May 30, 2003
- Messages
- 19
Hi,
Sorry about the vague title, couldn't think of succinct way to describe this... I have a table (tblSample) with the primary key of SampleID. It is the one side of a one to many relationship with tblDetails (foreign key is SampleID) whose primary key is the combination between SampleID and TestID. The number of TestIDs is fixed. It also has a boolean field for Result.
What I'm trying to do is make a report that can display the number of positive results for each TestID. I could make a table that has a one to many relationship with tblDetails containing TestID and TotalPos for the number of positive results for each TestID and build a report off of that. Just wanted to know if anyone could suggest a better way of doing this because I don't need to store this data (some sort of query I would guess). Thanks
John
Sorry about the vague title, couldn't think of succinct way to describe this... I have a table (tblSample) with the primary key of SampleID. It is the one side of a one to many relationship with tblDetails (foreign key is SampleID) whose primary key is the combination between SampleID and TestID. The number of TestIDs is fixed. It also has a boolean field for Result.
What I'm trying to do is make a report that can display the number of positive results for each TestID. I could make a table that has a one to many relationship with tblDetails containing TestID and TotalPos for the number of positive results for each TestID and build a report off of that. Just wanted to know if anyone could suggest a better way of doing this because I don't need to store this data (some sort of query I would guess). Thanks
John