Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

At least one record at last page

0 views
Skip to first unread message

Alexander Resnik

unread,
Dec 23, 2000, 4:56:32 AM12/23/00
to
I wish to print at least one record at the last page in report. How?

--
Alexander Resnik


Steve Arbaugh

unread,
Dec 23, 2000, 9:01:48 AM12/23/00
to
Alex:

You can do this by doing the following:

1.) In the on open event of the report, open a recordset on the query or
view that underlies the report and count the records and store the value in
a variable.
2.) Dimension a second variable in the report's declares to use as a record
counter as the report prints.
3.) Add a page break control to the detail section of the report at the top
of the section, but set its visible property to false so that it doesn't
fire.
4.) In the on print event of the detail section increment the counter
variable for each record that is to print. If counter = total, then set the
page break control's visible property to true.

HTH

Steve Arbaugh
ATTAC Consulting Group
http://ourworld.compuserve.com/homepages/attac-cg


"Alexander Resnik" <res...@sed.lg.ua> wrote in message
news:921ta0$csu$1...@hell.sed.lg.ua...

JPaulSchmidtMBA

unread,
Dec 24, 2000, 1:47:33 PM12/24/00
to
Assuming you have a group header, detail, and group footer and you want to keep
it all together, you might try something like the following:

View | Sorting and Grouping | And for the group in question set the Keep
Together property to be Whole Group.

Best regards,
-Paul

J. Paul Schmidt, MBA
Databases on the Web
http://www.Bullschmidt.com

0 new messages