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

need formula for str concat in address rpt

Status
Not open for further replies.

olichap

Programmer
Mar 20, 2001
389
US
I have an address report for my VB app that groups 1st by Name, 2nd by address. When the query runs a given name may have the same address two or three times; each is attached to a different network-code.
ex/
Smith, John
123 Main st. Nowhere, XX 12345 NetCode: 12
123 Main st. Nowhere, XX 12345 NetCode: 43
324 Elm st. Nowhere, XX 12345 NetCode: 12
324 Elm st. Nowhere, XX 12345 NetCode: 43

Now, my grouping by address will eliminate the dupe addresses. What I am trying to do is report a list of all the NetCodes associated with the name (in this case 12 & 43). I could create a formula to concatenate the codes w/commas between but that would return "12,43,12,43." I would like to see "12,43."

Any suggestions?

Thanks,

Oliver
 
Create a running total count of how many addresses are in each person group, and then only append the Net codes while the running count = 1. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top