Check boxes and union queries

  • Thread starter Thread starter RobRoy
  • Start date Start date
R

RobRoy

Using Access 2000 on Windows XP.

I have two queries:
The first query reads a table that has a check box for
input. If there is a check in the field, then I can
enter -1 as a parameter in the query and all the entries
that are checked come up. If I place a 0 as the
parameter, then all the entries that are not checked come
up. Real simple.

My second query uses the first query as a union - I want
to sum up all the checked responses as one total and all
the unchecked responses as a separate total. However,
when I do so, those entries that are checked are grouped
as if the field was entered as 0, not -1. The reverse is
also true of the entries that are not checked.

I can live with the difference and note it in
documentation, but am I missing something here? Should
this be happening, and if so, what is the explanation?
It would be nice to know to at least let the person
receivng this know.
 
You might want to provide and explain your SQL of the queries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SUM in a UNION query 2
Union Query 2
Union query not displaying select statement 1
Union query 5
Union Query if Yex/No 13
Union Query 2
Union Query and Field Alias 7
Union Query Access 2007 SP2 MSO 7

Back
Top