G
Guest
I have a dialog box that contains a list box of all my records; basically
this is used as a way for a person to find/edit a previously-entered record
(select from list box and click to edit/view). The list box is based on a
simple query.
I want to add a combo box that will allow me to filter the list box by one
of the fields - so the user could select what type of record he/she would
like to see, and the list box would automatically filter. I know I need an
After Update event on the combo box, but I can't figure out the code.
The complicating factor is that there are other filters at work on the same
list box: I also have a toggle button that makes the list include/not include
items marked as "archived", and an option group that allows the user to
change the sort order. Therefore, I don't want to go back to the query to get
the SQL for the list box, as it won't include any of the other filters that
have been applied in the form. I need to grab the SQL from the list box as it
currently exists, then modify this to filter by type of record.
Hope this makes sense and that someone can offer some guidance on how to go
about this!
Thanks,
Jen
this is used as a way for a person to find/edit a previously-entered record
(select from list box and click to edit/view). The list box is based on a
simple query.
I want to add a combo box that will allow me to filter the list box by one
of the fields - so the user could select what type of record he/she would
like to see, and the list box would automatically filter. I know I need an
After Update event on the combo box, but I can't figure out the code.
The complicating factor is that there are other filters at work on the same
list box: I also have a toggle button that makes the list include/not include
items marked as "archived", and an option group that allows the user to
change the sort order. Therefore, I don't want to go back to the query to get
the SQL for the list box, as it won't include any of the other filters that
have been applied in the form. I need to grab the SQL from the list box as it
currently exists, then modify this to filter by type of record.
Hope this makes sense and that someone can offer some guidance on how to go
about this!
Thanks,
Jen