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

First record of Each group shpuld be BOLD

Status
Not open for further replies.

khan007

Programmer
Jun 10, 2003
103
CA
Hi,

I have a question.
I am on CR 8.5.
I have 2 groups in my report.
Group1 : Teacher
Group2: Students
I need to print my report with first record of Group2 in BOLD else regular.

I used following code on each field's, font properties for group2, tried many logic with groups but unable to create a logic for each group. It works for only the first record.


If OnFirstRecord
Then CrBold
Else CrRegular


Please advice..

Thanks
 
Try:

If OnFirstRecord
or
previous({table.group1field}) <> {table.group1field} Then
CrBold
Else
CrRegular

-k
 
Sorry, I probably misundertood your request, try:

If OnFirstRecord
or
previous({table.group2field}) <> {table.group2field} Then
CrBold
Else
CrRegular


-k
 
Thanks for response.

I tried the same thing.
My second group is (@patient).
TimeSlot is field in second group header.

If
OnFirstRecord or
previous ({RPT_100076.TIME_SLOT},({@PATIENT})) <> ({RPT_100076.TIME_SLOT},({@PATIENT}))
then CrBold
Else CrRegular

but it's giving me an error; The ) is missing.

Please advice
 
Basically what I am looking in my report is:
Group1 is Doctor group and Group 1 header will display Doctor Name.
Group2 is Patient group and Group 2 header will display Patient records.


Bradley, Shawn
Patient1 Male 7777 SD (this whole record, IN BOLD)
Patient2 Male 8888 MN
Patient3 Male 9999 IL

Barkley, Steve
Patient4 Male 5555 TX (this whole record, IN BOLD)
Patient5 Male 4444 CA
Patient6 Male 6666 NJ

Drexler, Brown
Patient7 Male 1111 CT (this whole record, IN BOLD)
Patient8 Male 2222 NY
Patient9 Male 3333 MD
 
Your formula looked nothing like mine, 2 fields per, bad parentheticals...

If
OnFirstRecord or
previous ({@PATIENT}) <> {@PATIENT} then
CrBold
Else
CrRegular

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top