Z
Z. Tetics
I'm trying to insert a list of values from a table into the where
clause of a query. I have a several sets of values stored as text that
I'd like to use as criteria in a query on a different table, for
example,
TableA:
ID CoumnA
1 | "3", "5","17", "34"
2 | "1", "12","15"
Where clauses:
WHERE TableB.ColumnB IN( "3", "5","17", "34")
or,
WHERE TableB.ColumnB IN( "1", "12","15")
Is there an easy way to get those values from a single cell in a table
and into the query? I've tried a few things, DLookUp, for example, but
get no values returned.
I think there should be a quick way of doing this without resorting to
VBA, but I can't think what it is.
clause of a query. I have a several sets of values stored as text that
I'd like to use as criteria in a query on a different table, for
example,
TableA:
ID CoumnA
1 | "3", "5","17", "34"
2 | "1", "12","15"
Where clauses:
WHERE TableB.ColumnB IN( "3", "5","17", "34")
or,
WHERE TableB.ColumnB IN( "1", "12","15")
Is there an easy way to get those values from a single cell in a table
and into the query? I've tried a few things, DLookUp, for example, but
get no values returned.
I think there should be a quick way of doing this without resorting to
VBA, but I can't think what it is.