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!

Multiple records into a single row???

Status
Not open for further replies.

vshapiro

Programmer
Jan 2, 2003
211
US
I need to combine multiple records into a single row in the report.
For example:
I want it to show like:
Project# Provider# Date1, Date2, Date3
1111 2222 1/1/01 2/2/02 1/2/02

This is actually three different records (same project#,
same Provider but each date - different record.
This is what I am doing:

Group by the Project #.

In the Project# group header place:

whileprintingrecords;
Global stringvar data := "";


In the Details Section place:

whileprintingrecords;
Global stringvar data;
data:= data + totext({@ExitDate})

In the Project# group footer place:
whileprintingrecords;
Global stringvar data;
data

Everything works OK but....
my field 'data' come on the reports couple of dates together - for exmple: 09/02/200209/02/200209/02/2002
Yes, I have couple of records which have same project#(which I grouped) and same date (I cannot group it).
What should I do to look my field "NORMAL"....

Thank you
 
In the Details Section place:

whileprintingrecords;
Global stringvar data;
if not(totext({@ExitDate}) in data)then
data:= data + totext({@ExitDate});

This should only place unique values in the variable data.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top