Hi
I have been asked to modify a form that uses the following query to display results:
The rowsource for cmbSearch is: SELECT DISTINCT SubCalls.StatusAfterCall
This has worked well until now but I have been asked to modify the code to do the following: "StatusAfterCall" can have about 20 different values but all of them can be grouped in two major categories: "Finished" and "In Process". What I need to do is to group the values into "Finished" and "In process" (through a table or VBA) and then change "cmbSearch" rowsource's so it only shows those two groups. The user will then only be able to select "Finished" or "In process" in the combobox and the results displayed will show all the items of that category.
What would be a good strategy to do this?
Thanks
mafhobb
I have been asked to modify a form that uses the following query to display results:
Code:
Me.lstsearch.RowSource = "Select [ContactID], [maxofsubcallid], [CallID], [SubCallDate], [SKU], [WhoPickedUp], [IssueType], [StatusAfterCall], [ResolutionDetails], [CustomerID] " & _
"From [Search on last subcallID] " & _
"Where [StatusAfterCall] like '*" & Me.cmbSearch & "*' " & "Order By [StatusAfterCall], [SubCallDate]; "
The rowsource for cmbSearch is: SELECT DISTINCT SubCalls.StatusAfterCall
This has worked well until now but I have been asked to modify the code to do the following: "StatusAfterCall" can have about 20 different values but all of them can be grouped in two major categories: "Finished" and "In Process". What I need to do is to group the values into "Finished" and "In process" (through a table or VBA) and then change "cmbSearch" rowsource's so it only shows those two groups. The user will then only be able to select "Finished" or "In process" in the combobox and the results displayed will show all the items of that category.
What would be a good strategy to do this?
Thanks
mafhobb