N
nadesico
Hi,
I am trying to find a unique value in a string. For example, the value in
my [ServiceDate] field is [1, 2, 3, 4, 5, 6, 11, 12, 21] and another has a
value of [2, 10, 12, 15], and I am trying to create a query that will state
that if there is a “1†in the field then it is true. The query that I am
using now looks like this,
ServiceDate1: IIf(InStr([ServiceDate],"1")>0,True)
and when I run this query, both of the above fields return a true value,
because the query looks for any instance of “1†which includes 10, 12, and
15. Is there a way for me to change my query so that the first field comes
back as true and the second field as false instead of both being true? Any
help would be greatly appreciated.
Thanks
I am trying to find a unique value in a string. For example, the value in
my [ServiceDate] field is [1, 2, 3, 4, 5, 6, 11, 12, 21] and another has a
value of [2, 10, 12, 15], and I am trying to create a query that will state
that if there is a “1†in the field then it is true. The query that I am
using now looks like this,
ServiceDate1: IIf(InStr([ServiceDate],"1")>0,True)
and when I run this query, both of the above fields return a true value,
because the query looks for any instance of “1†which includes 10, 12, and
15. Is there a way for me to change my query so that the first field comes
back as true and the second field as false instead of both being true? Any
help would be greatly appreciated.
Thanks