Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter subform with combo boxes

Status
Not open for further replies.

stru

Programmer
Mar 23, 2002
10
US
Hi,

I'm trying to use 6 combo boxes to filter the records on an
underlying subform. I want the results to be determined by cboBox1
AND cboBox2, etc.

The problem that I encounter is how to still query the subform when
there are multiple null values. I don't want the user to have to
fill out all of the boxes, just the ones that are specific to their
search. When I have done this in the past it has been easy because I
was only using 2-3 combo boxes and could say if cbobox1 is null and
cbobox2 is null then cbobox3 is the criteria, etc. But with so many
boxes the variations/possibilities are too many. There must be an
easier way.

Any help would really be appreciated. Thanks.

Dan
 
Maybe you could try setting a default value in the combo boxes, such as "None." Then you wouldn't ever have to deal with null values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top