list of numbers stored as text in a table cell as the criteria for a query?
- From: "Z. Tetics" <zetetics@xxxxxxxxx>
- Date: 6 Nov 2006 09:28:16 -0800
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.
.
- Follow-Ups:
- Re: list of numbers stored as text in a table cell as the criteria for a query?
- From: Amy Blankenship
- Re: list of numbers stored as text in a table cell as the criteria for a query?
- Prev by Date: Re: Null Values
- Next by Date: Re: list of numbers stored as text in a table cell as the criteria for a query?
- Previous by thread: Re: Null Values
- Next by thread: Re: list of numbers stored as text in a table cell as the criteria for a query?
- Index(es):
Relevant Pages
|