I have a perplexing problems I have worked on for days with no solution and I'm hoping someone out there has encountered this before. I am having problems pulling data from the DB for one type of report and THEN pulling data for another report, EXCLUDING THE DATA FROM THE FIRST REPORT
I am using CRXI with an Access DB and Windows XP. This is a windows project, a small DB with front ends to record and report data from Lab tests done on seed samples.
The database has several tables, three of which are:
LabNumber
LabelTest
GermReadings
Purity Readings
Entries and table joins go like this:
|----------------------------------------------|
| /---------------------------\ |
| / v v
LabNumber -------->Label Test------>GermReadings Purity
281009 Germination 57
Purity 95
I pull a report that reports Germination AND Purity readings for each company that submitted samples for germination and purity analysis (this one pulls data just fine).Then, I want to pull a SECOND report that will report Germination ONLY on samples submitted ONLY for germination (and not for purity).
I thought that I would be able to use the following record selection logic for the second report:
This should (I thought) pull all records for which there was no entry in the LabelTest Table that equaled "Purity". But for some reason that completely eludes me, this won't work. I have tried joining the tables in several different ways, with no luck. This seemed a very simple task, but it has proven not to be. Any help/ideas would be so appreciated. The programmer quit -- I'm the backup. Help. I apologize if this turns out to be a DB thing and this is posted in the wrong forum.
ribbons
I am using CRXI with an Access DB and Windows XP. This is a windows project, a small DB with front ends to record and report data from Lab tests done on seed samples.
The database has several tables, three of which are:
LabNumber
LabelTest
GermReadings
Purity Readings
Entries and table joins go like this:
|----------------------------------------------|
| /---------------------------\ |
| / v v
LabNumber -------->Label Test------>GermReadings Purity
281009 Germination 57
Purity 95
I pull a report that reports Germination AND Purity readings for each company that submitted samples for germination and purity analysis (this one pulls data just fine).Then, I want to pull a SECOND report that will report Germination ONLY on samples submitted ONLY for germination (and not for purity).
I thought that I would be able to use the following record selection logic for the second report:
Code:
{LabelTest.TestName} <> "PURITY"
This should (I thought) pull all records for which there was no entry in the LabelTest Table that equaled "Purity". But for some reason that completely eludes me, this won't work. I have tried joining the tables in several different ways, with no luck. This seemed a very simple task, but it has proven not to be. Any help/ideas would be so appreciated. The programmer quit -- I'm the backup. Help. I apologize if this turns out to be a DB thing and this is posted in the wrong forum.
ribbons