Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Reports

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-23-2006, 11:33 AM
kfinpgh kfinpgh is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Jun 2006
Posts: 7
kfinpgh
Default Page numbering glitch

I created several reports that check for the page bottom before possibly printing a group header. This avoids an orphan group header (group header with no detail) at the bottom of a page. The code I used for this came from Microsoft.

Now, one report shows 2 more printed pages than the total pages (ie: 149 of 147 pages) on the last page. The 149 is the true page count, but the 147 is not. Access must lose track of the total page numbers as it's formatting the report. That report seems to have a problem with any page count.

It's a minor thing, but I know my managment will pick at that as if it was a major thing. Other reports using a similar technique work properly.

I don't use a subreport, but the detail for each group can vary. The detail section and its controls can grow/shrink. There is one line per detail so there should not be a gap problem between detail lines. There are some blank records in the query I use as group counters, so allowing the detail section and controls to shrink/grow works well in minimizing white space.

I also added code to make some of the group header controls not visible if a group is continued to the next page. I replace them with a "continued ..." label. The group header and its controls cannot grow/shrink and the page problem remained after I deleted that code as a test.

This report also has a page numbering problem if it's told to render the detail and other controls not visible (summary mode).

Any ideas to find and fix the problem?
Reply With Quote
  #2  
Old 06-28-2006, 06:50 AM
kfinpgh kfinpgh is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Jun 2006
Posts: 7
kfinpgh
Default [RESOLVED] page numbering glitch

I use the ifbottom function (available from Microsoft's web site) in determining if there is enough room for the header to print. I told it to use a floating point number (single or double) instead of integer and set the number to 9.4. I already have .5 inch as the top and bottom margins and the page footer is 2 lines. The group header is about .6 inches so that works out well.
Reply With Quote
  #3  
Old 08-17-2006, 03:21 PM
Novice
 
Join Date: Jun 2006
Posts: 3
egads
Default Re: [RESOLVED] page numbering glitch

Quote:
Originally Posted by kfinpgh
I use the ifbottom function (available from Microsoft's web site) in determining if there is enough room for the header to print. I told it to use a floating point number (single or double) instead of integer and set the number to 9.4. I already have .5 inch as the top and bottom margins and the page footer is 2 lines. The group header is about .6 inches so that works out well.
I did a search on "ifbottom", "if_bottom" on microsoft.com and msdn.microsoft.com with no results.
Can you point me to it?
Thanks
Reply With Quote
  #4  
Old 08-17-2006, 06:23 PM
kfinpgh kfinpgh is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Jun 2006
Posts: 7
kfinpgh
Default

i found that function while looking for widows and orphans, the term used for the few words in a sentence that flow to the next page. the knowledge base has a lot of articles regarding all sorts of short cuts.

I solved my problem by tinkering with the page length number in the function used in the onprint property of the header. It took a few tries, but it worked.

You may also look for page numbering, pages, headers, or other similar terms.
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset page number and total page number for each group lisadailey Reports 1 03-12-2009 07:55 AM
Access and Web page mahlambane Access 1 11-18-2008 08:43 AM
Numbering records knightjp Database Design 0 08-17-2008 05:07 AM
Auto Numbering rkruczk Forms 0 10-09-2006 02:25 AM
Page Footer Top RHall Reports 3 12-15-2005 06:35 AM


All times are GMT -8. The time now is 03:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.