Hello,
man.. this just keeps getting deeper and deeper..
Okay, heres what I'm trying to do...
I have multiple numbers comma separated in a feild for my table
(EI) 1,2,3,4,5,6
I have a search form building a filter for a query and I'm showing the matching records in a subform
What I want to do is, If I search for "1" it show that record, and if a search for "2" or even "6" it show that record as well..
here's the code now..
Is there an easy way to do this? Instead of using "LIKE" maybe something else?
I'm not very good at VB but I can follow examples.. Maybe a while loop to separate the numbers? but that would probably take a long time.
Please somebody help me!
man.. this just keeps getting deeper and deeper..
Okay, heres what I'm trying to do...
I have multiple numbers comma separated in a feild for my table
(EI) 1,2,3,4,5,6
I have a search form building a filter for a query and I'm showing the matching records in a subform
What I want to do is, If I search for "1" it show that record, and if a search for "2" or even "6" it show that record as well..
here's the code now..
Code:
' search for Non Conforming
If Me.cmbNCcodeID > 0 Then
varWhere = varWhere & "[nccodeID] LIKE """ & Me.cmbNCcodeID & "*"" AND "
End If
Is there an easy way to do this? Instead of using "LIKE" maybe something else?
I'm not very good at VB but I can follow examples.. Maybe a while loop to separate the numbers? but that would probably take a long time.
Please somebody help me!
