PC Review


Reply
Thread Tools Rate Thread

Check Box query help

 
 
Steph
Guest
Posts: n/a
 
      5th May 2010
Morning all, looking for some more help from my gurus.

What I have:

A table with 4 or 5 text fields, and 8 Check Boxes.

What I want: A query that will allow me to Query a couple of those check
boxes that will return both.

IE: one box - Simple
Two checked, - return records with BOTH check boxes selected.

As always, thanks in advance.

Steph
 
Reply With Quote
 
 
 
 
Steph
Guest
Posts: n/a
 
      5th May 2010
While i am being greedy, what would be my ideal situation is to have say, an
Option Group with my checkboxes in it, and when checkboxes are selected, my
form (or subform) is automatically filtered without leaving the form.

Is this possible?

Thanks again!

"Steph" wrote:

> Morning all, looking for some more help from my gurus.
>
> What I have:
>
> A table with 4 or 5 text fields, and 8 Check Boxes.
>
> What I want: A query that will allow me to Query a couple of those check
> boxes that will return both.
>
> IE: one box - Simple
> Two checked, - return records with BOTH check boxes selected.
>
> As always, thanks in advance.
>
> Steph

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      5th May 2010
>>What I want: A query that will allow me to Query a couple of those check
boxes that will return both.
So why not put an unbound checkbox for each in the form header to use as
criteria?
My_Calculated_Field: IIF([Forms]![YourForm]![Cbo1] =-1 AND Table1.Cbo1 =-1,
1, 0) + IIF([Forms]![YourForm]![Cbo2] =-1 AND Table1.Cbo2 =-1, 1, 0) + ...

Criteria --
>= IIF([Forms]![YourForm]![Cbo1] =-1, 1, 0) +

IIF([Forms]![YourForm]![Cbo2] =-1, 1, 0) + ...

>>an Option Group with my checkboxes in it,

An Option Group uses a single field to store the data and only one of its
boxes can be checked at a time.


--
Build a little, test a little.


"Steph" wrote:

> While i am being greedy, what would be my ideal situation is to have say, an
> Option Group with my checkboxes in it, and when checkboxes are selected, my
> form (or subform) is automatically filtered without leaving the form.
>
> Is this possible?
>
> Thanks again!
>
> "Steph" wrote:
>
> > Morning all, looking for some more help from my gurus.
> >
> > What I have:
> >
> > A table with 4 or 5 text fields, and 8 Check Boxes.
> >
> > What I want: A query that will allow me to Query a couple of those check
> > boxes that will return both.
> >
> > IE: one box - Simple
> > Two checked, - return records with BOTH check boxes selected.
> >
> > As always, thanks in advance.
> >
> > Steph

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
check query exists else msgbox "query missing" BrightIdeas Microsoft Access Queries 1 12th Nov 2006 09:38 PM
Re: Check box in a query Allan Murphy Microsoft Access Reports 0 26th Aug 2005 01:10 AM
Re: Query check Steve Schapel Microsoft Access Queries 1 8th Mar 2004 04:12 AM
Re: Query check John Spencer (MVP) Microsoft Access 0 7th Mar 2004 11:53 PM
'Sanity Check' - combine macro, delete query and make table query Mike Webb Microsoft Access Queries 2 17th Feb 2004 02:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.