Greetings!
The column [ColumnC] contains multiple values. The values are comma separated numbers. My variable is MyID.
Example record1:
ColumnA: Hello
ColumnB: Excellent
ColumnC: 1, 15, 23, 35
Example record2:
ColumnA: Hi there
ColumnB: Fabulous
ColumnC: 12, 33, 105
The SQL example:
StrSQL = "SELECT ColumnA, ColumnB, ColumnC FROM Table1 WHERE ColumnC LIKE " & MyID
I'd like to make a SELECT that will display all the records that contain MyID.
If MyID = 1 then I'd like to only find record1, not record2 (record2 has a 1 in the 12.)
I use SPLIT to display individual MyIDs that are found in ColumnC, but I'm stymied as how to use it in a SELECT.
TIA!
Dave![[idea] [idea] [idea]](/data/assets/smilies/idea.gif)
[]
The column [ColumnC] contains multiple values. The values are comma separated numbers. My variable is MyID.
Example record1:
ColumnA: Hello
ColumnB: Excellent
ColumnC: 1, 15, 23, 35
Example record2:
ColumnA: Hi there
ColumnB: Fabulous
ColumnC: 12, 33, 105
The SQL example:
StrSQL = "SELECT ColumnA, ColumnB, ColumnC FROM Table1 WHERE ColumnC LIKE " & MyID
I'd like to make a SELECT that will display all the records that contain MyID.
If MyID = 1 then I'd like to only find record1, not record2 (record2 has a 1 in the 12.)
I use SPLIT to display individual MyIDs that are found in ColumnC, but I'm stymied as how to use it in a SELECT.
TIA!
Dave
![[idea] [idea] [idea]](/data/assets/smilies/idea.gif)
[]