I have cascading combo boxes that filter a list of employees based on the team number selected in the first box and by what type of equipment they operate. Is it possible to have the list contain the filtered results on top of the list then list the remaining employees sans the ones selected by the filter?
I am relatively new to VB and here is how I am cascading the boxes.
Dim strSQl As String
Combo50 = Null
strSQl = "SELECT DISTINCT [T_EMPLOYEES].[LAST_NAME] FROM [T_EMPLOYEES] "
strSQl = strSQl & " WHERE [T_EMPLOYEES.TEAM] = '" & Combo26 & "' And "
strSQl = strSQl & " [T_EMPLOYEES].[EQUIP] = '" & TypeEqip & "'"
strSQl = strSQl & " ORDER BY [T_EMPLOYEES].[LAST_NAME];"
Combo50.RowSource = strSQl
I tried to create a second string that chose all employees not equal to "TypeEquip" and then concatenate the two strings. But I don't even know if this is possible or if I am completely on the wrong path. My syntax may even be way off.
Thanks for any help.
I am relatively new to VB and here is how I am cascading the boxes.
Dim strSQl As String
Combo50 = Null
strSQl = "SELECT DISTINCT [T_EMPLOYEES].[LAST_NAME] FROM [T_EMPLOYEES] "
strSQl = strSQl & " WHERE [T_EMPLOYEES.TEAM] = '" & Combo26 & "' And "
strSQl = strSQl & " [T_EMPLOYEES].[EQUIP] = '" & TypeEqip & "'"
strSQl = strSQl & " ORDER BY [T_EMPLOYEES].[LAST_NAME];"
Combo50.RowSource = strSQl
I tried to create a second string that chose all employees not equal to "TypeEquip" and then concatenate the two strings. But I don't even know if this is possible or if I am completely on the wrong path. My syntax may even be way off.
Thanks for any help.