SirTKC
Art Systems Canada Inc.
- Local time
- Today, 05:23
- Joined
- Apr 28, 2015
- Messages
- 14
Hi,
I am using this [On Change] very simple but useful script to filter a continuous form.
================
Me.Filter = "ID LIKE '" & "*" & S_ID.Text & "*" & "'"
Me.FilterOn = True
Me.Requery
Me.S_ID.SetFocus
Me.S_ID.SelStart = Len(S_ID.Text)
================
Works very well.
But I've been ask if its possible to use multiple values inside a control and perform a search based on the same principle.
Ex. [1,5,7] - In the same control and dynamicaly filter my form.
I thought about using commas to seperate values and then try to REPLACE. But not a chance. Once again I've hit the limit of my unknown...
Is there a guru here who ever tried that ?
I am using this [On Change] very simple but useful script to filter a continuous form.
================
Me.Filter = "ID LIKE '" & "*" & S_ID.Text & "*" & "'"
Me.FilterOn = True
Me.Requery
Me.S_ID.SetFocus
Me.S_ID.SelStart = Len(S_ID.Text)
================
Works very well.
But I've been ask if its possible to use multiple values inside a control and perform a search based on the same principle.
Ex. [1,5,7] - In the same control and dynamicaly filter my form.
I thought about using commas to seperate values and then try to REPLACE. But not a chance. Once again I've hit the limit of my unknown...
Is there a guru here who ever tried that ?