A
adamsjw2
Greetings,
This is a follow-up to an earlier post about a similar issue, but now
the query is a little more complicated.
I have a mdb of clients. Each client has a diagnosis on Axis1-1 and
Axis 1-2. I want to select only those clients whose diagnosis falls
within two differents ranges of values, on either Axis1-1 or Axis 1-2.
When I run a query on Axis1-1 alone, my total records are 358
when I run a query on Axis 1-2 alone, my total reacords are 237.
When I try to run one query, then my totals is 403.
Here's the SQL statement for this last query.
SELECT ClientDataSet.DiagAxis1one, ClientDataSet.DiagAxis1two,
ClientDataSet.SSN
FROM ClientDataSet
WHERE (((ClientDataSet.DiagAxis1one) Between "291.00" And "292.90"))
OR (((ClientDataSet.DiagAxis1one) Between "303.00" And "305.93"))
OR
(((ClientDataSet.DiagAxis1two) Between "303.00" And "305.93")) OR
(((ClientDataSet.DiagAxis1two) Between "291.00" And "292.90"));
Any suggestions greatly appreciated,
Jim
This is a follow-up to an earlier post about a similar issue, but now
the query is a little more complicated.
I have a mdb of clients. Each client has a diagnosis on Axis1-1 and
Axis 1-2. I want to select only those clients whose diagnosis falls
within two differents ranges of values, on either Axis1-1 or Axis 1-2.
When I run a query on Axis1-1 alone, my total records are 358
when I run a query on Axis 1-2 alone, my total reacords are 237.
When I try to run one query, then my totals is 403.
Here's the SQL statement for this last query.
SELECT ClientDataSet.DiagAxis1one, ClientDataSet.DiagAxis1two,
ClientDataSet.SSN
FROM ClientDataSet
WHERE (((ClientDataSet.DiagAxis1one) Between "291.00" And "292.90"))
OR (((ClientDataSet.DiagAxis1one) Between "303.00" And "305.93"))
OR
(((ClientDataSet.DiagAxis1two) Between "303.00" And "305.93")) OR
(((ClientDataSet.DiagAxis1two) Between "291.00" And "292.90"));
Any suggestions greatly appreciated,
Jim