![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |