And why I would take your coding advice over Gamer's any day!
Hahaha.
No way, mang. gamer has this covered.
This just in, a snippet of gamer's code (not really):
If Request("ctl00$PageBody$selstatus") <> "" Then
stat = Request("ctl00$PageBody$selstatus").Split(",".ToCharArray)
For Each st In stat
If st.Equals("5") Then
For Each st1 In stat
If st1.Equals("2") And st1.Equals("3") Then
ElseIf st1.Equals("2") And st1 <> "3" Then
qur.Append("3,")
ElseIf st1 <> "2" And st1.Equals("3") Then
qur.Append("2,")
ElseIf st1 <> "2" And st1 <> "3" Then
qur.Append("2,3,")
End If
Next
Else
qur.Append(st + ",")
End If
stID = stID & "$" & st
Next
End If