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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine multiple values horizontally in a report (text) field

Status
Not open for further replies.

FinanceDude

Technical User
Mar 31, 2005
1
US
I have a query with say 5 zip codes and I want to list them in a report horizontally (on a single row). For example the output = "21043, 23942, 21286, 12345, 98765".

How can I do this? I've been playing with text field but had no luck. Any assistance would be much appreciated!
 
Hi there--This isn't something you can do in queries. You'd have to write code to loop thru your table and concantonate the data. Here's a post where it shows someone who's written something you could use. So try it out and see if it works for you!

thread703-947026

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top