"All" criteria in a list box

ekta

Registered User.
Local time
Today, 07:31
Joined
Sep 6, 2002
Messages
160
Hi:

I want to know if "All" criteria can be added to a listbox. Right now if users don't make any selection in a listbox it returns all the records. But users want to add "All" criteria in a list box to that. I know it can be done in a combo box. I searched on the forums but did not see it for list boxes.

Thanks,

Ekta
 
Thanks
 
Rich:

This is what I have so far. But I am having trouble making the "All" criteria work.

I am attaching the db. If you can please take a look at it.

Thanks,

Ekta
 

Attachments

Ekta,

Here's a sample that I had. I think it's from a post here quite
a while ago.

Wayne
 

Attachments

Hi Wayne:

Thanx for the sample. That is what I want to do. But I am having trouble adding the "All" criteria in my code. My code loops through multiple listboxes and then builds the where clause.

-Ekta
 
Ekta,

Look at the code behind the "Query" button. That's what
it does.

It will build the SQL that you need.

Wayne
 
Wayne, I did take a look at the code behind the query button. I tried to incorporate that in my code as my code is a little different because of multiple listboxes but I am having a little trouble with it.
 
Hi Wayne:

I already did. If you scroll up you will see it.

Ekta
 
Thanx for all your help Wayne. I figured it out. It works just fine.
 

Users who are viewing this thread

Back
Top Bottom