P
Paul Ponzelli
I have two combo boxes on a form, and I'm using one to select records in the
form, and the other as the criteria in the Row Source property of the first
combo box. In other words, I'm using a combo box to filter the record
source of the "selection" combo box.
That "filter" combo box lists attorneys, so when you select a given
attorney, the only records displayed in the Row Source of the "selection"
combo box are those corresponding to the selected attorney. One of the
selections is "All Attorneys" and the bound column has the value "*"
(asterisk) when that selection is made. The criteria of the selection combo
box is
Like forms!formName!cboAttorneyFilter
so that when "All Attorneys" ("*") is selected, the records for all
attorneys are displayed in the selection combo box. When a specific
attorney is selected, only the records for that attorney are displayed.
This all works as intended except for one thing - while "All Attorneys" does
indeed display records for all attorneys, it only displays records where the
Attorney field is not null. What I would like to do is modify the selection
criteria so that when "All Attorneys" is selected in the filter combo box,
the Row Source of the selection combo box will display all records,
including Null values. However, I don't want those null values to be
displayed when a particular attorney is selected.
How can I modify my selection criteria to include Null values when "All
Attorneys" ("*") is selected?
Thanks in advance,
Paul
form, and the other as the criteria in the Row Source property of the first
combo box. In other words, I'm using a combo box to filter the record
source of the "selection" combo box.
That "filter" combo box lists attorneys, so when you select a given
attorney, the only records displayed in the Row Source of the "selection"
combo box are those corresponding to the selected attorney. One of the
selections is "All Attorneys" and the bound column has the value "*"
(asterisk) when that selection is made. The criteria of the selection combo
box is
Like forms!formName!cboAttorneyFilter
so that when "All Attorneys" ("*") is selected, the records for all
attorneys are displayed in the selection combo box. When a specific
attorney is selected, only the records for that attorney are displayed.
This all works as intended except for one thing - while "All Attorneys" does
indeed display records for all attorneys, it only displays records where the
Attorney field is not null. What I would like to do is modify the selection
criteria so that when "All Attorneys" is selected in the filter combo box,
the Row Source of the selection combo box will display all records,
including Null values. However, I don't want those null values to be
displayed when a particular attorney is selected.
How can I modify my selection criteria to include Null values when "All
Attorneys" ("*") is selected?
Thanks in advance,
Paul