473,396 Members | 2,052 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,396 software developers and data experts.

Divided Spacing on Reports:Acc97

Thank you in advance for any and all assistance. I'm trying to create a report
that will work similar to the label wizard in Access. I have a premade form I'm
attempting to fill with data from the db. I can manually make the information
fit, by making the report the full 8.5" x 11", however, when I attempt to size
the report so that an individual record prints in each one, the sizing is all
off. Is there a secret for dividing up the report page with .50 footer and .50
header with .25 and .251 repspectively right and left margins to get say
"three" (3) even records?

Also, does each record require the .50 header and footer to computated for
spacing also? If that's the case, you loose 3" in an 11" form????

I have tried using the label wizard customized and can't get it to work, PLEASE
help with this. The form is PrePRINTED and I'm attempting to fill in fields on
this preprinted form. They are also perferated every 3.75", which when I try
and make the label that big, I loose the third section of the form.

Michael
Nov 13 '05 #1
2 1491
You want 3 labels on a Letter-sized page, with the text placed exactly the
same on each. But you must allow for half-inch margin top and bottom of the
page. The solution is to create a group footer that prints every record, and
suppress it on the 3rd label.

1. Open (or create) the report in design view.
Choose Page Setup from the File menu, and set the top and bottom margins to
0.5 inch.

2. Set the Height of the Detail section to 3 inch.

3. Add a text box to the Detail section, and give it these properties:
Control Source =1
Running Sum Over All
Name txtCount
Format General Number
Visible No

4. Open the Sorting And Grouping dialog (View menu).
Select your primary key field.
In the lower pane of the dialog, set Group Footer to Yes.
Set the Height of this section to 0.5 inch.

5. To suppress this group footer for the 3rd label on the page, set the On
Format property of this group footer section to:
Event Procedure
Click the Build button (...) beside this.
Access opens the code window.
Add this line between the "Private Sub ..." and "End Sub" lines:

Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As
Integer)
Me.GroupFooter0.Visible = (((Me.txtCount - 1) Mod 3) <> 2)
End Sub

In the end, your 11" tall page looks like this:

,------------------------------------
| 0.5" Page Header
|---------------------------
|
| 3.0" Label 1
|
|-----------------
| 0.5" Group Footer (Spacer)
|--------------------------
|
| 3.0" Label 2
|
|-----------------
| 0.5" Group Footer (Spacer)
|---------------------------
|
| 3.0" Label 3
|
|-------------------------- (suppressed group footer is zero height here)
| 0.5" Page Footer
`--------------------------------------

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m07.aol.com...
Thank you in advance for any and all assistance. I'm trying to create a
report
that will work similar to the label wizard in Access. I have a premade
form I'm
attempting to fill with data from the db. I can manually make the
information
fit, by making the report the full 8.5" x 11", however, when I attempt to
size
the report so that an individual record prints in each one, the sizing is
all
off. Is there a secret for dividing up the report page with .50 footer and
.50
header with .25 and .251 repspectively right and left margins to get say
"three" (3) even records?

Also, does each record require the .50 header and footer to computated for
spacing also? If that's the case, you loose 3" in an 11" form????

I have tried using the label wizard customized and can't get it to work,
PLEASE
help with this. The form is PrePRINTED and I'm attempting to fill in
fields on
this preprinted form. They are also perferated every 3.75", which when I
try
and make the label that big, I loose the third section of the form.

Michael

Nov 13 '05 #2
Sorry: to get exactly the same layout, the Group Footer (spacer) section
needs to be 1 inch high. That leaves 2.6666 inch high for each label.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
You want 3 labels on a Letter-sized page, with the text placed exactly the
same on each. But you must allow for half-inch margin top and bottom of
the page. The solution is to create a group footer that prints every
record, and suppress it on the 3rd label.

1. Open (or create) the report in design view.
Choose Page Setup from the File menu, and set the top and bottom margins
to 0.5 inch.

2. Set the Height of the Detail section to 3 inch.

3. Add a text box to the Detail section, and give it these properties:
Control Source =1
Running Sum Over All
Name txtCount
Format General Number
Visible No

4. Open the Sorting And Grouping dialog (View menu).
Select your primary key field.
In the lower pane of the dialog, set Group Footer to Yes.
Set the Height of this section to 0.5 inch.

5. To suppress this group footer for the 3rd label on the page, set the On
Format property of this group footer section to:
Event Procedure
Click the Build button (...) beside this.
Access opens the code window.
Add this line between the "Private Sub ..." and "End Sub" lines:

Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As
Integer)
Me.GroupFooter0.Visible = (((Me.txtCount - 1) Mod 3) <> 2)
End Sub

In the end, your 11" tall page looks like this:

,------------------------------------
| 0.5" Page Header
|---------------------------
|
| 3.0" Label 1
|
|-----------------
| 0.5" Group Footer (Spacer)
|--------------------------
|
| 3.0" Label 2
|
|-----------------
| 0.5" Group Footer (Spacer)
|---------------------------
|
| 3.0" Label 3
|
|-------------------------- (suppressed group footer is zero height here)
| 0.5" Page Footer
`--------------------------------------
"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m07.aol.com...
Thank you in advance for any and all assistance. I'm trying to create a
report
that will work similar to the label wizard in Access. I have a premade
form I'm
attempting to fill with data from the db. I can manually make the
information
fit, by making the report the full 8.5" x 11", however, when I attempt to
size
the report so that an individual record prints in each one, the sizing is
all
off. Is there a secret for dividing up the report page with .50 footer
and .50
header with .25 and .251 repspectively right and left margins to get say
"three" (3) even records?

Also, does each record require the .50 header and footer to computated
for
spacing also? If that's the case, you loose 3" in an 11" form????

I have tried using the label wizard customized and can't get it to work,
PLEASE
help with this. The form is PrePRINTED and I'm attempting to fill in
fields on
this preprinted form. They are also perferated every 3.75", which when I
try
and make the label that big, I loose the third section of the form.

Michael

Nov 13 '05 #3

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
1
by: Aqua | last post by:
Hi All, I previous posted: I have an access 97 database that I'm still using by running it with the runtime version created using ODE Tools. I have had to upgrade my machines to Windows XP and...
7
by: Kathryn Townsend | last post by:
We have a customer using our Acc97 Runtime application on a Win 98 machine that was recently upgraded to WinXP Home Edition Service Pack 1. Shes states RAM is 228, CPU Pentium II 398 MHz , Hard...
0
by: Sabine Oebbecke | last post by:
Hi Experts! I have several forms and reports where controls get their values with 'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp 'Forms!MainForm!Subform.Form!Control' which...
20
by: Stephan Golux | last post by:
It seems I have run afoul of an unfixable and acknowledged bug in my beloved access 97 which has no workaround other than to upgrade. Current supported upgrades are 2002 and 2003. 2003 appears...
22
by: Gerry Abbott | last post by:
Hi all, I having some confusing effects with recordsets in a recent project. I created several recordsets, each set with the same number of records, and related with an index value. I create...
2
by: planetthoughtful | last post by:
Hi All, I'm building some reports in Acc97 and using a custom calendar form to allow users to pick dates with which to report. I'm wondering if there's an easy way in code to be able to...
6
by: ARC | last post by:
Ok, so I'm looking at Access 2007, and I have imported my existing Access 97 application. I'm feeling a bit overwelmed in what to do here. In my original 97 application, I had one form: Mainmenu,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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...

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.