Print page header if no detail

G

Guest

My report groups on 3 fields: name, procedure, date. These fields are all in
the page header followed by a detail section containing various additional
data associated with the header field combination. I have all 3 header
fields set to "keep together: whole group." Most of the time, a new page
starts after the last detail record that is associated with its corresponding
header. (I don't have any manual page breaks in the report.) Sometimes I
have a name, procedure and date in the database where all of the detail
fields are empty. In this case, I want to print a separate page showing this
header information. I don't care whether a blank detail record is printed or
not. Right now, if there is no associated detail, the date field and a blank
detail line print in the detail section under the previous
Name-Procedure-Date header. If I have 2 records in a row with empty details,
the date fields and blank details for both print under the detail section for
the last record that did have data. Can anyone help? TIA.

Example -- assuming there are no detail records for the second set of header
fields:
What I want:
Name1
Procedure1
Date1
Detail1
[New Page]
Name2
Procedure2
Date 2
[New Page]
Name3
Procedure3
Date3
Detail3

What I'm getting now:
Name1
Procedure1
Date1
Detail1
Date2
Detail2 (blank line)
[New Page]
Name3
Procedure3
Date3
Detail3
 
G

Guest

I found the problem. The GrpKeepTogether property for the entire report
somehow got set to "per column". I'm guessing it happened automagically when
I set the report to 2 columns in the Page Setup. I changed GrpKeepTogether
to "per page" and the problem was solved. I hope this helps anyone who
experiences the same problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top