Ok, looking at it, here's what I'd suggest you do.
Note:
The code wasn't thoroughly tested. There may be mistakes within that you'll have to track down.
Suggestion 1:
I'd probably ditch the boxes that appear on the side that populate with the description when you check things off. The text you search for can be just put into the code.
Suggestion 2:
For each of the three Statuses (Married, Employed, Degree) I'd recommend you add an extra box for each. I'll only discuss the Married one in this example, but the other two are similar.
For Married, my recommendation is to add a checkbox for Unmarried. When both boxes are blank, then Marriage isn't something that people want to filter for. Otherwise, when one of them is checked, it is something that must be filtered for. I'll assume that you create a checkbox called CheckUnmarried. then, I'd recommend you set up your code as follows for the Clicks:
As stated, the other two (Employed and Degree) are similar.
Suggestion 3:
I'd add the following two Test functions. The first one checks for the relationships. If no relationship is checked, then relationship doesn't matter (ie. Return True). If any relationship is checked, then we want to return True if a selected relationship matches the line, or False otherwise.
The second function can be used with any field where you have two checkboxes (as mentioned in Suggestion 2) where the values in the cells are either "Yes" or "" (that is, blank). Suggestion 4 deals with how to use this function. This part just states it.
Suggestion 4:
The cmdOK_Click() function can probably be rewritten as follows. This takes into account the changes suggested by Suggestion 2 and Suggestion 3.
S
Bookmarks