leaving list box null to choose all

Schmidtty

Registered User.
Local time
Yesterday, 23:45
Joined
Jan 30, 2003
Messages
12
This may be an elementary question.
In my form.....I have several list boxes to choose: Region
and company size
and SIC code
and various other criteria.

This is put into a table which I then run a "filter" query off my main data table. I am fine if I fill in every box. Now, I want to leave a list box null and have it choose everything in that catergory.
Advice???
 
Use the following record scource for your combobox:

Select Null, <All> from tbyourtable
Union
Select Id, AField from tbyourtable;

With the first column in the combobox hidden, <All> will appear in the combobox list, it ID value will be Nul, code appropriately.
 

Users who are viewing this thread

Back
Top Bottom