I will post the code first to put things in perspective:
Private Sub Combo14_AfterUpdate()
Select Case Me!Combo14.Value
Case “ATC”
DoCmd.ApplyFilter, “Synchronous = ‘ATC’”
Case “ICW”
DoCmd.ApplyFilter, “Asynchronous = ‘ICW’”
Case “OT”
DoCmd.ApplyFilter, “Synchronous = ‘OT’”
Case “PA”
DoCmd.ApplyFilter, “Asynchronous = ‘PA’”
Case “PM”
DoCmd.ApplyFilter, “Blend = ‘PM’”
Case “PSS”
DoCmd.ApplyFilter, “Asynchronous = ‘PSS’”
Case “PV”
DoCmd.ApplyFilter, “Blend = ‘PV’”
Case “SIM”
DoCmd.ApplyFilter, “Blend = ‘SIM’”
Case “STC”
DoCmd.ApplyFilter, “Synchronous = ‘STC’”
Case “TrC”
DoCmd.ApplyFilter, “Synchronous = ‘TrC’”
Case “TD”
DoCmd.ApplyFilter, “Synchronous = ‘TD’”
Case “VTC”
DoCmd.ApplyFilter, “Synchronous = ‘VTC’”
End Select
End Sub
So, basically, I'm using values in a combobox to filter records. However, the field in the record could have the data presented multiple ways. For example ATC is actually found in the records field as either "ATC, OT" or "TrC, STC, VTC, ATC, OT". I need the filter to show records that match either criteria. I have a feeling this is a really easy fix, but I'm at a loss since I can get the wildcards to work.
Any help is appreciated.
Private Sub Combo14_AfterUpdate()
Select Case Me!Combo14.Value
Case “ATC”
DoCmd.ApplyFilter, “Synchronous = ‘ATC’”
Case “ICW”
DoCmd.ApplyFilter, “Asynchronous = ‘ICW’”
Case “OT”
DoCmd.ApplyFilter, “Synchronous = ‘OT’”
Case “PA”
DoCmd.ApplyFilter, “Asynchronous = ‘PA’”
Case “PM”
DoCmd.ApplyFilter, “Blend = ‘PM’”
Case “PSS”
DoCmd.ApplyFilter, “Asynchronous = ‘PSS’”
Case “PV”
DoCmd.ApplyFilter, “Blend = ‘PV’”
Case “SIM”
DoCmd.ApplyFilter, “Blend = ‘SIM’”
Case “STC”
DoCmd.ApplyFilter, “Synchronous = ‘STC’”
Case “TrC”
DoCmd.ApplyFilter, “Synchronous = ‘TrC’”
Case “TD”
DoCmd.ApplyFilter, “Synchronous = ‘TD’”
Case “VTC”
DoCmd.ApplyFilter, “Synchronous = ‘VTC’”
End Select
End Sub
So, basically, I'm using values in a combobox to filter records. However, the field in the record could have the data presented multiple ways. For example ATC is actually found in the records field as either "ATC, OT" or "TrC, STC, VTC, ATC, OT". I need the filter to show records that match either criteria. I have a feeling this is a really easy fix, but I'm at a loss since I can get the wildcards to work.
Any help is appreciated.