Connecting Tech Pros Worldwide Forums | Help | Site Map

Add "ALL" to combo shows no records

Dale Ring
Guest
 
Posts: n/a
#1: Nov 12 '05
Access 2000

I am trying to add "ALL" to a combo that is used to filter a query.
When "ALL" is selected no records show instead of ALL records showing.

I have setup a "dummy" table (tblDum) with 1 field (txtDummy,
Integer)with 1 record that has a "0" entered.

The field that is being filtered is an Integer type.

Here is the rowsource for the combo:

SELECT tblProviders.ProviderID, tblProviders.ProviderName FROM
tblProviders UNION Select 0 as AllChoice , "(All)" as Bogus From
tblDum;

Any and ALL suggestions are truly appreciated!

Thanks
Dale

Bob Quintal
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Add "ALL" to combo shows no records


mtech1@yadtel.net (Dale Ring) wrote in
news:d578cae0.0311050949.2e19921e@posting.google.c om:
[color=blue]
> Access 2000
>
> I am trying to add "ALL" to a combo that is used to filter a
> query. When "ALL" is selected no records show instead of ALL
> records showing.
>
> I have setup a "dummy" table (tblDum) with 1 field (txtDummy,
> Integer)with 1 record that has a "0" entered.
>
> The field that is being filtered is an Integer type.
>
> Here is the rowsource for the combo:
>
> SELECT tblProviders.ProviderID, tblProviders.ProviderName FROM
> tblProviders UNION Select 0 as AllChoice , "(All)" as Bogus
> From tblDum;
>
> Any and ALL suggestions are truly appreciated![/color]

There is no problem here, this part works fine. It's what you are
doing when the "All" option is selected that needs to be changed,
but you didn't post that part of your design.

What is in the AfterUpdate Event of your combo? That's what we need
to diagnose your problem.

Bob Q
[color=blue]
>
> Thanks
> Dale
>[/color]

Pieter Linden
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Add "ALL" to combo shows no records


Dale,
sounds like this will solve your problem...

http://www.mvps.org/access/forms/frm0043.htm
Closed Thread