A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

blank page caused by pagebreak



 
 
Thread Tools Display Modes
  #1  
Old October 3rd, 2005, 02:55 PM
Ming
external usenet poster
 
Posts: n/a
Default blank page caused by pagebreak

I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?



--
Software Developer
  #2  
Old October 4th, 2005, 12:21 AM
leabee1
external usenet poster
 
Posts: n/a
Default

Is it just beacause of the width of your report? Maybe its just that your
report is running over the page and that is why it is having a blank page.
Try just checking your widths on everything?

"Ming" wrote:

I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?



--
Software Developer

  #3  
Old October 4th, 2005, 01:04 AM
Boyd \Hi Tech Coach\ via AccessMonster.com
external usenet poster
 
Posts: n/a
Default

The last page is always blank because that is what you are telling Access to
do.

Normally this is not done by adding the page break control.

There are report properties that woill handle this for you.

You should set the property for the group footer to "Force new page" = "After
section".

Hope this helps...


Ming wrote:
I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?


--
Boyd
Hi Tech Coach
http://www.hitechcoach.com


Message posted via http://www.accessmonster.com
  #4  
Old October 4th, 2005, 08:35 PM
Ming
external usenet poster
 
Posts: n/a
Default

Hello Boyd,

Thank you so much for your help. I made the changes based on you suggestion
and it works.


Best Regards

Software Developer


"Boyd "Hi Tech Coach" via AccessMonster" wrote:

The last page is always blank because that is what you are telling Access to
do.

Normally this is not done by adding the page break control.

There are report properties that woill handle this for you.

You should set the property for the group footer to "Force new page" = "After
section".

Hope this helps...


Ming wrote:
I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?


--
Boyd
Hi Tech Coach
http://www.hitechcoach.com


Message posted via http://www.accessmonster.com

  #5  
Old October 4th, 2005, 08:37 PM
Ming
external usenet poster
 
Posts: n/a
Default

Hello,

Thank you for your responding. I made the changes based on Boyd's
suggestion. It works as required now.

--
Software Developer


"leabee1" wrote:

Is it just beacause of the width of your report? Maybe its just that your
report is running over the page and that is why it is having a blank page.
Try just checking your widths on everything?

"Ming" wrote:

I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?



--
Software Developer

  #6  
Old October 5th, 2005, 02:39 PM
Ming
external usenet poster
 
Posts: n/a
Default

Hello Boyd,

I am doing testing now and noticed that if I set "Force new page" - "After
section", it will print one entry per page all right.

However, the requirement is one technicain per page. Under tech group, it
lists tasks base on the Tech name. Sometimes one tech can have multiple
tasks.





--
Software Developer


"Boyd "Hi Tech Coach" via AccessMonster" wrote:

The last page is always blank because that is what you are telling Access to
do.

Normally this is not done by adding the page break control.

There are report properties that woill handle this for you.

You should set the property for the group footer to "Force new page" = "After
section".

Hope this helps...


Ming wrote:
I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?


--
Boyd
Hi Tech Coach
http://www.hitechcoach.com


Message posted via http://www.accessmonster.com

  #7  
Old October 5th, 2005, 04:52 PM
Ming
external usenet poster
 
Posts: n/a
Default

Hello Boyd,

You can ignore my last message. I found a way to do it. Thanks

--
Software Developer


"Boyd "Hi Tech Coach" via AccessMonster" wrote:

The last page is always blank because that is what you are telling Access to
do.

Normally this is not done by adding the page break control.

There are report properties that woill handle this for you.

You should set the property for the group footer to "Force new page" = "After
section".

Hope this helps...


Ming wrote:
I have a report that is grouped by compnay name and then technician Name. The
requirement is -- each technician info per page. I added a pagebreak in the
Technician group footer to meet the requirement. Because the pagebreak in the
Technician group footer, the last page always blank.

I added the following codes in the detail_format event to prevent user to
see the last blank page:
If Me.Page = Me.Pages - 1 Then
GroupFooter2.Visible = False
Else
GroupFooter2.Visible = True
End If

The above code works fine so the users will not see the last blank page.
However, when I print it. It print the report without pagebreak.

I want to hide the last blank page from viewing and also not to print the
last blank page. Is there any way to do it?


--
Boyd
Hi Tech Coach
http://www.hitechcoach.com


Message posted via http://www.accessmonster.com

 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header & Footer not on first page but on subsequent pages KM1 General Discussion 14 June 13th, 2005 12:36 AM
"Blank page" is not blank. It contains text written weeks ago. Kingfish General Discussion 3 January 7th, 2005 09:52 PM
Creating an "unmovable" blank page Dan Page Layout 1 October 11th, 2004 11:12 PM
NUMBERING the pages Bob New Users 7 June 14th, 2004 12:20 AM
Adding text to blank pages Dave Page Layout 1 June 9th, 2004 06:54 AM


All times are GMT +1. The time now is 04:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.