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!

retruning data in a row instead of a column

Status
Not open for further replies.

martink1

IS-IT--Management
Jun 22, 2001
41
US
I'm adding UPS/ FedEx tracking numers to orders as a subreport. My tracking numbers come back vertically in a column. how can i get them to populate horizontaly in a row?
 
Here's one way you can do this:
you'll need three formulas

In the report header (which is suppressed) place formula {@init}
shared stringvar trnums := ' '

In the detail section (which is suppressed) place formula {@bump}
shared stringvar trnums;
trnums := trnums +{table.trackingnumber}&" "

In the group footer A place formula {@sho track}
shared stringvar trnums

In group footer B (suppressed) place another copy of {@init} (this may not be necessary if you're calling the subreport once per group, but it won't hurt)
 
Another method is a suitable crosstab.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
Thanks Charliy, that worked. What exactly did you have me do? I'm not an advanced Crystal user.
Now I just need to get my tracking numbers to be clickable again.
 
I had you build a string in a shared variable, then display it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top