Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split returned recordset into unique strings

Status
Not open for further replies.

martync

Programmer
Mar 4, 2002
7
AU
I have a returned recordset of the format:
FieldName TableName
A Z
B Z
C Z
D Y
E Y
F Y etc
What I want to do is create a list of fieldNames for a unique tableName ie "A,B,C" for "Z" "D,E,F" for "Y"
I intend to use this information to generate a query
SELECT strFieldList FROM tbl which loops through all the combinations derived above.
Any suggestions on the most efficient way to do this from the gurus?
With thanks, Martyn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top