Skip used mailing labels

A

Alison

I wanted to find out how to skip used mailing labels and found an article in
the Knowledge Base (299024). It looks exactly like what I want to do, but on
step 5 [report header onformat =LabelInitizlize() ] I got an error that said
the Visual Basic module contains a syntax error. Since I just copied and
pasted the info as in the article, I have no idea what's wrong. I've copied
and pasted everything, so I don't know why it's giving me an error. Any
ideas?
 
F

fredg

I wanted to find out how to skip used mailing labels and found an article in
the Knowledge Base (299024). It looks exactly like what I want to do, but on
step 5 [report header onformat =LabelInitizlize() ] I got an error that said
the Visual Basic module contains a syntax error. Since I just copied and
pasted the info as in the article, I have no idea what's wrong. I've copied
and pasted everything, so I don't know why it's giving me an error. Any
ideas?

I have no idea of what the KB articles says or what you did.
I know this method works.

First make sure your label report is properly printing a full sheet of
labels.

Then add a Report Header to your label report.
Add 2 text boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound

2) Name the other SkipCounter
Set it control Source to =[Skip How Many?]

Now code the Report Header Format event as below:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
==========

Next code the Detail OnPrint event:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" Then
Me.NextRecord = False
Me.PrintSection = False
Else
[SkipControl] = "No"
Me.PrintSection = True
Me.NextRecord = True
End If

End Sub
=====

When you are ready to run the label report, it will ask how many to
skip.
Then it will run the report.
 
A

Alison

thanks, I got that to work!

Alison

fredg said:
I wanted to find out how to skip used mailing labels and found an article in
the Knowledge Base (299024). It looks exactly like what I want to do, but on
step 5 [report header onformat =LabelInitizlize() ] I got an error that said
the Visual Basic module contains a syntax error. Since I just copied and
pasted the info as in the article, I have no idea what's wrong. I've copied
and pasted everything, so I don't know why it's giving me an error. Any
ideas?

I have no idea of what the KB articles says or what you did.
I know this method works.

First make sure your label report is properly printing a full sheet of
labels.

Then add a Report Header to your label report.
Add 2 text boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound

2) Name the other SkipCounter
Set it control Source to =[Skip How Many?]

Now code the Report Header Format event as below:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
==========

Next code the Detail OnPrint event:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" Then
Me.NextRecord = False
Me.PrintSection = False
Else
[SkipControl] = "No"
Me.PrintSection = True
Me.NextRecord = True
End If

End Sub
=====

When you are ready to run the label report, it will ask how many to
skip.
Then it will run the report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top