I am attempting to create a report in Aceess using the Label Wizard
What my question is, is it possible to create a full page of th
same label in the Label Wizard with multiple names and addresses i
my Table??? If anyone could help, it would be greatly appreciated
Nelson
Not using the wizard
This will permit you to enter the number of times to repeat th
labels, as well as skip missing label positions on an already use
sheet
First make sure your label report properly prints 1 label per record
Then add a Report Header to the label report
Add 3 unbound text boxes to the header
1) Set the Control Source to
= [Skip how many
Name this control SkipCounte
2) Leave the second control unbound
Name this control SkipContro
3) Set the third control's Control Source to
=[Repeat how many
Name it RepeatCounte
Next code the Report Header OnFormat event
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount A
Integer
[SkipControl] = "Skip
Cancel = Tru
End Su
======
Now code the Detail OnPrint Event
(Note that intMyPrint is Static!!
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer
Static intMyPrint As Intege
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" The
Me.NextRecord = Fals
Me.PrintSection = Fals
intMyPrint =
Els
[SkipControl] = "No
Me.PrintSection = Tru
Me.NextRecord = Tru
intMyPrint = intMyPrint +
If IsNull([RepeatCounter]) The
ElseIf intMyPrint Mod [RepeatCounter] = 0 The
Me.NextRecord = Tru
intMyPrint =
Els
Me.NextRecord = Fals
End I
End I
End Su
========
When you run the report, it will ask how many labels to skip, then ho
many times to repeat each label
Hope this has helped
--
Fred Please only reply to this newsgroup. I do not reply to persona
email
----- fredg wrote: ----
On Thu, 19 Feb 2004 11:36:08 -0800, Nelson James wrote
Thanks for the help Fred!!
Fred
I have completed your instructions and have received the following syntax error
***The expression may not result in the nameof the macro, the name of a user defined funtion, or [EventProcedure]
***There may have been an error evaluating the function, event or macro
Any ideas of how to correct these errors
Well, I'm Fred, one of several answering questions in this and othe
Access news groups
Since you haven't included any part of the previous post in this ne
thread, if this is a question in regards to one of my responses,
have no idea what instructions you are referring to
All I can see from this post, is that you probably attempted to writ
some code ON THE EVENT LINE, rather than in the event window
If you would care to post back IN THE SAME THREAD, and include th
message part that this refers to, and where you attempted to writ
the code, I, or some one else, will be glad to take a look