K
Kerry
I have created a form that is used to select filter criteria for a variety of
reports. The form has three combo boxes which have cascading dependencies
i.e., the results of the second are dependant on the selection made in the
first and the results of the third are dependent on the selection made in the
second. They are named cmbClient, cmb Entity and cmbState.
The boxes appear to function fine and the subsequent queries/reports work as
long as I have made a selection IN ALL THREE BOXES. Therein lies the
problem. I would like to allow the user to make a selection in only the
first combo box, cmbClient and not have to touch the other two.
I first tried setting the default value of cmbEntity and cmbState to * to no
avail. I then tried using an IIF statement in the queries to add * as a
parameter when cmbEntity or cmbState are null but I receive and errror
indicating the query was too complicated to resolve. Last, I modified the
queries on which cmbEntity and cmbState are based to include an additional
record with * (as the ID field) and ALL (as the display value) so that the
user could select ALL as an option. THis too produced no results.
Eventually I would like to allow the user to select any combination of the
three combo boxes but for now, I'll settle for getting the thing working
better than requiring a selection in all three.
Any suggestions would be appreciated.
reports. The form has three combo boxes which have cascading dependencies
i.e., the results of the second are dependant on the selection made in the
first and the results of the third are dependent on the selection made in the
second. They are named cmbClient, cmb Entity and cmbState.
The boxes appear to function fine and the subsequent queries/reports work as
long as I have made a selection IN ALL THREE BOXES. Therein lies the
problem. I would like to allow the user to make a selection in only the
first combo box, cmbClient and not have to touch the other two.
I first tried setting the default value of cmbEntity and cmbState to * to no
avail. I then tried using an IIF statement in the queries to add * as a
parameter when cmbEntity or cmbState are null but I receive and errror
indicating the query was too complicated to resolve. Last, I modified the
queries on which cmbEntity and cmbState are based to include an additional
record with * (as the ID field) and ALL (as the display value) so that the
user could select ALL as an option. THis too produced no results.
Eventually I would like to allow the user to select any combination of the
three combo boxes but for now, I'll settle for getting the thing working
better than requiring a selection in all three.
Any suggestions would be appreciated.