T
Tiana Arylle
Hi all -
I'm using the InStr function to parse a comma delimited text field for use
in a parameter query. It works like a charm, except that the data in the
field is very small and it's splitting by character.
For example, here's the function I'm using in the query SQL (I snipped the
rest of the SQL for space):
InStr(1,[Forms]![frmAppliesTo].[txtSelections] & ",",[BOOK_ID])
Works great if what's in the text box is:
1
3
1,3
If, however, the text box is "13", it returns records for 1, 3, and 13.
Any hints on how I could fix this? Thanks!
~ Tia
I'm using the InStr function to parse a comma delimited text field for use
in a parameter query. It works like a charm, except that the data in the
field is very small and it's splitting by character.
For example, here's the function I'm using in the query SQL (I snipped the
rest of the SQL for space):
InStr(1,[Forms]![frmAppliesTo].[txtSelections] & ",",[BOOK_ID])
Works great if what's in the text box is:
1
3
1,3
If, however, the text box is "13", it returns records for 1, 3, and 13.
Any hints on how I could fix this? Thanks!
~ Tia