473,409 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Pages property problem

I have a report which has a list of products, with a total page count.
Due to layout concerns, the client wants to be able to adjust how many
products are printed on a page.

What I do, is keep a count of products and force a page break when the
total no of products per page is reached. (It is a very messy business.
I have been trying unsuccessfully to convince them to change the layout
to avoid this need).

The problem now is that the total number of pages does not adjust itself
and they get 'Page 14 of 13', etc.

I know that Access does a pre-run to count the total pages. Then I come
and add in page breaks, which increases the number of pages, so I can
understand why this is happening. However, this report has been up and
running for over a year, and until now they haven't had this problem,
though this *may* be because they had only printed shorter lists and the
page adjustments didn't actually change the total number of pages.

Does anyone know have any idea why this is happening, and what I can do?
(Client is frantic as they say they have to urgently print and send off
the report.).

Thank you.
--
Zippy S
Feb 8 '07 #1
3 1686
Forgot to add: I'm working in A97, if that makes a difference.
Thanks.
--
Zippy S
Feb 8 '07 #2
Zippy wrote:
>I have a report which has a list of products, with a total page count.
Due to layout concerns, the client wants to be able to adjust how many
products are printed on a page.

What I do, is keep a count of products and force a page break when the
total no of products per page is reached. (It is a very messy business.
I have been trying unsuccessfully to convince them to change the layout
to avoid this need).

The problem now is that the total number of pages does not adjust itself
and they get 'Page 14 of 13', etc.

I know that Access does a pre-run to count the total pages. Then I come
and add in page breaks, which increases the number of pages, so I can
understand why this is happening. However, this report has been up and
running for over a year, and until now they haven't had this problem,
though this *may* be because they had only printed shorter lists and the
page adjustments didn't actually change the total number of pages.

Does anyone know have any idea why this is happening, and what I can do?
(Client is frantic as they say they have to urgently print and send off
the report.).

If you want to print N details per page and that many
details are guaranteed to fit on a page, then use a
RunningSum text box (expression =1, RunningSum Over All) to
number the details. Then a Page Break control at the bottom
of the detail section can do the job:
Me.pgBreak.Visible = (txtDetailCount Mod N = 0)

If the details can grow so you can not guarantee N will fit
on a page, then you need to use a running total of the
detail count printed prior to the current page
(ala http://support.microsoft.com/kb/132017/en-us)
so you can determine when to make the page break control
visible:
Me.pgBreak.Visible = (txtDetailCount - pgfootertotal >= 3)

--
Marsh
Feb 8 '07 #3
Tom
On Feb 8, 3:33 am, Zippy <Zipp...@thedessers.comwrote:
I have a report which has a list of products, with a total page count.
Due to layout concerns, the client wants to be able to adjust how many
products are printed on a page.

What I do, is keep a count of products and force a page break when the
total no of products per page is reached. (It is a very messy business.
I have been trying unsuccessfully to convince them to change the layout
to avoid this need).

The problem now is that the total number of pages does not adjust itself
and they get 'Page 14 of 13', etc.

I know that Access does a pre-run to count the total pages. Then I come
and add in page breaks, which increases the number of pages, so I can
understand why this is happening. However, this report has been up and
running for over a year, and until now they haven't had this problem,
though this *may* be because they had only printed shorter lists and the
page adjustments didn't actually change the total number of pages.

Does anyone know have any idea why this is happening, and what I can do?
(Client is frantic as they say they have to urgently print and send off
the report.).

Thank you.
--
Zippy S
Zippy:
One solution is to avoid the entire problem and just delete the "of
13" part...

Tom

Feb 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: rob | last post by:
Hi to all. I am pretty new to using Access and am having a problem I hope someone can help me with. I want to access a MS-Access database from a web page. I have managed to get it "sort" of...
1
by: VBSponge | last post by:
Hi all. In A2K i have a report with a control bound to to calculate the page count for the report. I need to retrieve this page count from the report, and build it into a TOC containing this an...
6
by: Andrew Mueller | last post by:
Hello all, I am working on a project, converting code from VB 6.0 to C#. I have a COM object (SDK.dll) referenced and am having some issues using it. I don't think it is specific to the object...
11
by: wASP | last post by:
Hi, I've got a pair of int properties in a class. The properties in question are indexing values - but that's not relevant to my problem - or it's just symptomatic ... sort of. They are...
5
by: Eric A. Johnson | last post by:
Hi Everyone, I am at my wit's end here. I have a combobox (combyQueryTitle) that I need to use in order to select a query for my database project. Therefore, I am using the...
0
by: vlado.eltrade | last post by:
Hi there. I have a problem with wrong MS Access report Pages property after hiding the page footer section on the report. The pages propery reffers to the max number of pages as the section was...
3
by: Jon L | last post by:
Hi, I'm hoping someone can help me with this problem. I'm not sure whether the problem lies with the software or with my understanding of the language. I'm using the Microsoft.XMLDOM object...
3
by: | last post by:
wHen i set CokSatan in my page load event it returns stack overflow.. When i try it step by step it stucks at this.CokSatan = value; line. what is the problem ?
1
by: shapper | last post by:
Hello, I created a user control (.ascx) with a property as follows: Private _Messages As Generic.List(Of String) Public Property Messages() As Generic.List(Of String) Get Return _Messages...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.