dbTalk Databases Forums  

Formatting subreport "report" headings

comp.databases.ms-access comp.databases.ms-access


Discuss Formatting subreport "report" headings in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ellen Manning
 
Posts: n/a

Default Formatting subreport "report" headings - 11-29-2004 , 03:47 PM






I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.

Reply With Quote
  #2  
Old   
Darryl Kerkeslager
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-29-2004 , 05:52 PM






Have you looked at Page Header Sections? It sound like you may want to add
Page Headers, and use them to contain your subreport headers. You can then
make them visible or not using the Format event of the PageheaderSection.
If I understand you correctly.

Darryl Kerkeslager

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote:
Quote:
I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.



Reply With Quote
  #3  
Old   
Allen Browne
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-29-2004 , 07:19 PM



Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page), choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They should
now show only at the top of the subreport, not on each page. (I'm assuming
the subreport is showing them because the group header's Repeat Section
property is set to Yes.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote

Quote:
I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.



Reply With Quote
  #4  
Old   
Ellen Manning
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-30-2004 , 08:23 AM



Thanks to both of you for your replies. I tried moving the headings
to the page header before posting but the headings did not print at
all. Maybe if I demo what this report looks like:

<student name and info> <subreport showing this students'
costs>
-------------------------------------------------------------------------
<student name and info> <subreport showing this students'
costs>
-------------------------------------------------------------------------
.....and so on and on....

I want the headings to print only for the first student on the page.



"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote

Quote:
Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page), choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They should
now show only at the top of the subreport, not on each page. (I'm assuming
the subreport is showing them because the group header's Repeat Section
property is set to Yes.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411291347.5f299832 (AT) posting (DOT) google.com...
I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.

Reply With Quote
  #5  
Old   
Allen Browne
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-30-2004 , 08:40 AM



That's correcct, Ellen. The page headings do not print in the subreport.

You need to use the Report Header of the subreport, not the Page Header.
They are both on the View menu when you open the subreport in design view.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote

Quote:
Thanks to both of you for your replies. I tried moving the headings
to the page header before posting but the headings did not print at
all. Maybe if I demo what this report looks like:

student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
....and so on and on....

I want the headings to print only for the first student on the page.



"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote

Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page),
choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They
should
now show only at the top of the subreport, not on each page. (I'm
assuming
the subreport is showing them because the group header's Repeat Section
property is set to Yes.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411291347.5f299832 (AT) posting (DOT) google.com...
I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.



Reply With Quote
  #6  
Old   
Ellen Manning
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-30-2004 , 02:07 PM



I'm using the report header. But I'm getting this result:

Heading 1 Heading 2...
<student name and info> <subreport showing this students' costs>
-------------------------------------------------------------------------
Heading 1 Heading 2...
<student name and info> <subreport showing this students' costs>
-------------------------------------------------------------------------
.....and so on and on....


But this is the result I want:

Heading 1 Heading 2...
<student name and info> <subreport showing this students' costs>
-------------------------------------------------------------------------
<student name and info> <subreport showing this students' costs>
-------------------------------------------------------------------------
.....and so on and on....




"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote

Quote:
That's correcct, Ellen. The page headings do not print in the subreport.

You need to use the Report Header of the subreport, not the Page Header.
They are both on the View menu when you open the subreport in design view.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411300623.5f09d859 (AT) posting (DOT) google.com...
Thanks to both of you for your replies. I tried moving the headings
to the page header before posting but the headings did not print at
all. Maybe if I demo what this report looks like:

student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
....and so on and on....

I want the headings to print only for the first student on the page.



"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote in message
news:<41abca90$0$25789$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au>...
Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page),
choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They
should
now show only at the top of the subreport, not on each page. (I'm
assuming
the subreport is showing them because the group header's Repeat Section
property is set to Yes.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411291347.5f299832 (AT) posting (DOT) google.com...
I've got an A2K report showing students and their costs. Student info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.

Reply With Quote
  #7  
Old   
Allen Browne
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 11-30-2004 , 07:35 PM



If you are getting that result when using the Report Header section of the
subreport, then it must be running another instance of the subreport for
each student.

If that is the case, you will have to move the heading text out of the
subreport, and place it on the main report somewhere where it shows only
once for the main report, e.g. the Report Header of the main report.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote

Quote:
I'm using the report header. But I'm getting this result:

Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
....and so on and on....


But this is the result I want:

Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
....and so on and on....




"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote in message
news:<41ac8666$0$25760$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au>...
That's correcct, Ellen. The page headings do not print in the subreport.

You need to use the Report Header of the subreport, not the Page Header.
They are both on the View menu when you open the subreport in design
view.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411300623.5f09d859 (AT) posting (DOT) google.com...
Thanks to both of you for your replies. I tried moving the headings
to the page header before posting but the headings did not print at
all. Maybe if I demo what this report looks like:

student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
....and so on and on....

I want the headings to print only for the first student on the page.



"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote in message
news:<41abca90$0$25789$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au>...
Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page),
choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They
should
now show only at the top of the subreport, not on each page. (I'm
assuming
the subreport is showing them because the group header's Repeat
Section
property is set to Yes.)


"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411291347.5f299832 (AT) posting (DOT) google.com...
I've got an A2K report showing students and their costs. Student
info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student
on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format
and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.



Reply With Quote
  #8  
Old   
Ellen Manning
 
Posts: n/a

Default Re: Formatting subreport "report" headings - 12-01-2004 , 08:02 AM



Yeah, that's what I was afraid I'd have to do. The subreport format
changes with the program the user selects so I was hoping to be able
to print the headings only once. Oh well...thought I would check here
first if anyone had had the same situation.

Thanks for your replies.




"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote

Quote:
If you are getting that result when using the Report Header section of the
subreport, then it must be running another instance of the subreport for
each student.

If that is the case, you will have to move the heading text out of the
subreport, and place it on the main report somewhere where it shows only
once for the main report, e.g. the Report Header of the main report.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411301207.6862d561 (AT) posting (DOT) google.com...
I'm using the report header. But I'm getting this result:

Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
....and so on and on....


But this is the result I want:

Heading 1 Heading 2...
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students' costs
-------------------------------------------------------------------------
....and so on and on....




"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote in message
news:<41ac8666$0$25760$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au>...
That's correcct, Ellen. The page headings do not print in the subreport.

You need to use the Report Header of the subreport, not the Page Header.
They are both on the View menu when you open the subreport in design
view.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411300623.5f09d859 (AT) posting (DOT) google.com...
Thanks to both of you for your replies. I tried moving the headings
to the page header before posting but the headings did not print at
all. Maybe if I demo what this report looks like:

student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
student name and info> <subreport showing this students'
costs
-------------------------------------------------------------------------
....and so on and on....

I want the headings to print only for the first student on the page.



"Allen Browne" <AllenBrowne (AT) SeeSig (DOT) Invalid> wrote in message
news:<41abca90$0$25789$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au>...
Open your subreport in design view.

If you do not see a Report Header section (grey bar across the page),
choose
Report Header/Footer on the View menu.

Move the headings from the group header into the Report Header. They
should
now show only at the top of the subreport, not on each page. (I'm
assuming
the subreport is showing them because the group header's Repeat
Section
property is set to Yes.)


"Ellen Manning" <manning_news (AT) hotmail (DOT) com> wrote in message
news:da7d13b.0411291347.5f299832 (AT) posting (DOT) google.com...
I've got an A2K report showing students and their costs. Student
info
is in the main report and costs are in a subreport for each student.
The user inputs the program desired then only those students in that
program are printed.

I want the subreports headings to print only for the first student
on
the page. Is there a way to suppress printing of the headings on
subsequent students on that page?

I tried the following in both the subreports' ReportHeader_Format
and
_Print events:

lngCount = lngCount + 1

If lngCount > 1 Then
Me.ReportHeader.Visible = False
End If

Thanks for any help or advice.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.