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  

Detect when detail section pushes to 2nd page



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 03:43 PM posted to microsoft.public.access.reports
wallymeister
external usenet poster
 
Posts: 26
Default Detect when detail section pushes to 2nd page

Is there a way of detecting when detail section pushes to 2nd page via code.

Sometimes my report group needs 2 pages and sometimes it don't, but I need a
diiferent set of conditions when it does.

Thanks, for any help!
Wally
  #2  
Old April 19th, 2010, 05:20 PM posted to microsoft.public.access.reports
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default Detect when detail section pushes to 2nd page

A possibility is to count the number of records in the detail section. If
the count exceeds some number depending on the design of your report, your
report will go o a second page.

Steve



"wallymeister" wrote in message
...
Is there a way of detecting when detail section pushes to 2nd page via
code.

Sometimes my report group needs 2 pages and sometimes it don't, but I need
a
diiferent set of conditions when it does.

Thanks, for any help!
Wally



  #3  
Old April 19th, 2010, 07:11 PM posted to microsoft.public.access.reports
wallymeister
external usenet poster
 
Posts: 26
Default Detect when detail section pushes to 2nd page

Hi steve,
My Detail section has, for example 138 total lines to print for report, this
is over 3 page breaks on model#. (46 per break) Only 42 lines will fit on a
page so each model will push 4 lines to a 2nd page. I've tried everything I
can think of to get the 138 lines to count 46 at a time and then start at 1
again for each model# change. Nothing works.

I could place code to keep track of the lines and pages but if there's a
better way to just detect when I'm on 2nd page of a model#. The lines per
model# will vary from time so nothing is constant. The only Constant is the
number of lines my detail section will print before pushing to 2nd page.

Hope this explains a little better what I need.
Wally

"Steve" wrote:

A possibility is to count the number of records in the detail section. If
the count exceeds some number depending on the design of your report, your
report will go o a second page.

Steve



"wallymeister" wrote in message
...
Is there a way of detecting when detail section pushes to 2nd page via
code.

Sometimes my report group needs 2 pages and sometimes it don't, but I need
a
diiferent set of conditions when it does.

Thanks, for any help!
Wally



.

 




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


All times are GMT +1. The time now is 12:58 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.