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

Multiple records - single row

Status
Not open for further replies.

veronic

Programmer
Joined
Apr 6, 2004
Messages
73
Location
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;

if not(totext({@ExitDate}) in data)then
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 example: 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"....

 
hi
click in the format section detail
and select format multiple collum and row

cheers

pg


pgtek
 
still does not work..??
 
Try changing your detail formula to:

whileprintingrecords;
Global stringvar data;

if instr(data, totext({@ExitDate},"M/d/yy")) = 0 then
data := data + totext({@ExitDate},"M/d/yy") + " " else
data := data;

-LB
 
doesn't work. The same result...
 
I created a sample report just as you described. I literally cut and pasted your formulas into my report. It is working fine for me. Are you grouping on the Provider #? This may affect your result somehow.
 
Also, are you pulling data from multiple tables?
 
I am pulling data from one view. And I am grouping by Proj #
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top