R
Robin
I have a form with 3 pairs of combo boxes that allow a user to set up
filtering - the left of each pair has a query field list as row source - the
right of each pair has a distinct sql statement as rowsource, based on the
same query where the field is the one selected in the left combo. From the
BeforeUpdate event on the left combo:
strFilterField = (Nz(Me![LeftCombo], 0))
Me!RightCombo.RowSource = "SELECT DISTINCT SomeQuery.[" & strFilterField &
"] FROM SomeQuery;"
This works fine and I was feeling quite good about getting this to work, but
the client now wants to add 'Blanks' and 'Non-blanks' to the right combo!
So in addition to listing all possible contents for the chosen field, the
right combo now needs to display 'Blanks' and 'Non-blanks' in its list.
I'm sat here scratching my head - I'd really welcome any suggestions or
examples of how this might be done. (I'm sure I can sort out the
application of these extra options - just can't see an obvious way to get
them added to the combo list.)
Regards
Robin
filtering - the left of each pair has a query field list as row source - the
right of each pair has a distinct sql statement as rowsource, based on the
same query where the field is the one selected in the left combo. From the
BeforeUpdate event on the left combo:
strFilterField = (Nz(Me![LeftCombo], 0))
Me!RightCombo.RowSource = "SELECT DISTINCT SomeQuery.[" & strFilterField &
"] FROM SomeQuery;"
This works fine and I was feeling quite good about getting this to work, but
the client now wants to add 'Blanks' and 'Non-blanks' to the right combo!
So in addition to listing all possible contents for the chosen field, the
right combo now needs to display 'Blanks' and 'Non-blanks' in its list.
I'm sat here scratching my head - I'd really welcome any suggestions or
examples of how this might be done. (I'm sure I can sort out the
application of these extra options - just can't see an obvious way to get
them added to the combo list.)
Regards
Robin