473,394 Members | 1,701 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,394 software developers and data experts.

Force Textboxes to new page in Reports --- Help

Hello,

I have a report in MS Access 2002 that has a list of textboxes in a
row down the page. All these textboxes get variable length data from
the Control Source Table of the report or from a function call that
returns a string.

The textboxes all have their cangrow property set and grow correctly
to fit the information. The problem lies if a textbox overlaps two
pages. Part of the textbox will be on one page and the other page will
contain the rest. Is there any way to force the textbox to begin on
the new page if it will overlap a page???

I have been playing around with this for a while and i have set
invisible pagebreaks above each textbox and i check each textbox at
time to see if it will overlap (I wrote a method that will take the
page height minus the header/footer heights and pagemargin heights
then MOD with the top and bottom values of the textbox, if the bottom
modded is smaller, then obviously, the textbox got divided over two
pages.

The problem now is that i have no idea where to call this method. I
have to call it after all the textboxes have grown to their correct
sizes, but before Access calculates the pages for me. Basically,
onFormat is too soon, and Page() and Print() are too late.

Does anybody know where i should call this method, or know a better
way of doing this. The report only shows one record so i cannot use
the Grouping.
Thanks in advance.

Mark
mc******@uoguelph.ca
Nov 12 '05 #1
1 3361
Mark,

I don't know if this will work so it's only a thought ---

Group on the textbox and set the Keep together property to Yes.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Mark" <mc******@uoguelph.ca> wrote in message
news:14*************************@posting.google.co m...
Hello,

I have a report in MS Access 2002 that has a list of textboxes in a
row down the page. All these textboxes get variable length data from
the Control Source Table of the report or from a function call that
returns a string.

The textboxes all have their cangrow property set and grow correctly
to fit the information. The problem lies if a textbox overlaps two
pages. Part of the textbox will be on one page and the other page will
contain the rest. Is there any way to force the textbox to begin on
the new page if it will overlap a page???

I have been playing around with this for a while and i have set
invisible pagebreaks above each textbox and i check each textbox at
time to see if it will overlap (I wrote a method that will take the
page height minus the header/footer heights and pagemargin heights
then MOD with the top and bottom values of the textbox, if the bottom
modded is smaller, then obviously, the textbox got divided over two
pages.

The problem now is that i have no idea where to call this method. I
have to call it after all the textboxes have grown to their correct
sizes, but before Access calculates the pages for me. Basically,
onFormat is too soon, and Page() and Print() are too late.

Does anybody know where i should call this method, or know a better
way of doing this. The report only shows one record so i cannot use
the Grouping.
Thanks in advance.

Mark
mc******@uoguelph.ca

Nov 12 '05 #2

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

Similar topics

7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
0
by: Drew | last post by:
Hey, i am currently looking for a nice solution for the following problem ( i could not find a sufficient solution in the other postings ): I am having several textboxes on my page, some of them...
3
by: Lloyd Sheen | last post by:
I have several apps that use a roll your own approach, but I am embarking on a project which will not allow that with the time constraints. I have gened up a little app to try the databinding...
3
by: Egbert Nierop \(MVP for IIS\) | last post by:
Hi, I have a complex asp.net 1.1 program that dynamically needs to load controls (LoadControl) The textboxes etc inside these controls keep viewstate and values but not within Page_Load() ...
0
by: comp.lang.php | last post by:
I have a form that when you click the "Generate Report" submit button, it will force download a CSV file, required for this project. On the very same page you also have a "Search" submit button,...
2
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
0
by: Smith.BarryP | last post by:
I have a program that uses displays data with scientific units. The user can select which particular unit they wish to see the values in (Kelvin, Celsius, etc...). I have handled this by...
2
by: Pieter | last post by:
Hi, I have a group of TextBoxes on my report that I want to be put always on the same page. These are like for isntance 5 lines of textboxes, and I don't want to have 3 of them on 1 page, and 2...
2
smartchap
by: smartchap | last post by:
In VB6 in a form there are 10 labels and associated 10 textboxes and 2 MSFlexGrids. There are 5 columns in the first MSFGrid and 7 in the second MSFGrid. There are 3 rows in the first grid and 4 in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.