I would like to build a filter on a form using a combo box. I would like the options to be "Open Records", "Closed Records" and "All Records".
I already have a combo box that has the options "Open" and "Closed". This combo box is set to Open when a new record is created and the user selects Closed when the issue is closed. So I can't use this combo box as a filter.
So, how can I use another combo box as a filter so the user can select "Open Records", "Closed Records" and "All Records" as view options on the form? I am using a query to provide the data from a table to the form. In the past I have used something like the code below to filter records, but since I am already using the Status field to change the status of the record, I don't know how else to do this.
Thanks,
Jim
I already have a combo box that has the options "Open" and "Closed". This combo box is set to Open when a new record is created and the user selects Closed when the issue is closed. So I can't use this combo box as a filter.
So, how can I use another combo box as a filter so the user can select "Open Records", "Closed Records" and "All Records" as view options on the form? I am using a query to provide the data from a table to the form. In the past I have used something like the code below to filter records, but since I am already using the Status field to change the status of the record, I don't know how else to do this.
Code:
[Forms]![frm_Data]![cbo_filter] Or Like [Forms]![frm_Data]![cbo_filter] & "*"
Thanks,
Jim