Re: Check boxes and union queries

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Duane Hookom (duanehookom_at_NO_SPAMhotmail.com)
Date: 02/01/04


Date: Sat, 31 Jan 2004 19:04:08 -0600

You might want to provide and explain your SQL of the queries.

-- 
Duane Hookom
MS Access MVP
"RobRoy" <anonymous@discussions.microsoft.com> wrote in message
news:7a7501c3e852$d34a9ab0$a001280a@phx.gbl...
> 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.
>
>


Relevant Pages

  • Re: Best way to sort arrays
    ... last entries ... In the first solution I use 2 extra queries and in the last soution I ... Could you not cut out the first query? ... If ordered backwards, start from the last key and ...
    (comp.lang.php)
  • Check boxes and union queries
    ... I have two queries: ... then all the entries that are not checked come ... My second query uses the first query as a union - I want ... to sum up all the checked responses as one total and all ...
    (microsoft.public.access.queries)
  • Re: Data Entry
    ... Open Northwind.mdb or almost any other sample database to see how forms are ... bound to tables or queries so that values entered or updated by users are ... MS Access MVP ... it does not save my entries and does not give me an option to save. ...
    (microsoft.public.access.gettingstarted)
  • Re: query wont run
    ... Try two queries. ... Get the DISTINCT you want in the first query then base the ... Count query on the first one instead of directly on the table. ... MS Access MVP ...
    (microsoft.public.access.queries)
  • Re: Running queries one after the other
    ... > event code as follows to run two Queries, ... > changed something and forgot to retest it at the time. ... > The first query is called Append School Offers to Archive ... The form that calls the queries? ...
    (microsoft.public.access.queries)