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!

Build a String With Distinct Records of Result Set

Status
Not open for further replies.

dv10lv

Programmer
Jan 4, 2007
8
US
For example I have 187 records returned and 2 distinct departments for deparment name. I want to display the Distinct Department names concatenated to one string on the Report Header. When I use browse data on the department_name field I get the distinct department names this is what I want the formula to do.

(Something Like)

StringVar DepName;

if not allready in then
DepName := DepName + {Command.department_name} + ChrW (13)



 
You purdy much have it, but since youwant it in the front of the report it's trickier, check out my FAQ:

faq767-6528

-k
 
Since you only have 2 you might use:

minimum({table.dept})+", "+maximum({table.dept})

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top