Re: Procedure Variable Value
- From: "bw" <iamnu@xxxxxxxxxxxx>
- Date: Thu, 14 Jul 2005 10:00:54 -0600
Thanks Marshall,
At this point, I can't provide you with any other information, including
what I'm trying to accomplish.
If someone would be interested in looking at the file, I'd be happy to send
it to whomever may help figure out what's happening. I just can't see what
is causing the problem.
My Access file is 1652 KB in size. If you'd like to take a look, please let
me know and I'll be happy to send it in hopes you can debug the problem.
I should probably explain that part of the code here comes from "Peter's
Software" called "Label Saver" (a really cool application that I have been
using for sometime now), that allows for printing a label a specified number
of times, from a specified start position.
My file has two reports in it (different size labels)...one works as it
should, the other doesn't.
If you want to help figure this out, please email me directly if you like
(iamnubw@xxxxxxxxx), and indicate how you want me to send you the file.
I'd prefer to keep things visible to the group, so that others may learn if
we determine that a solution may help others.
Thanks for your help,
Bernie
"Marshall Barton" <marshbarton@xxxxxxxxxx> wrote in message
news:4tvcd1t9spdfm6ld7e349hbscberfjn56d@xxxxxxxxxx
> bw wrote:
>
>>Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
>>ls_DetailOnPrint Me 'Label Saver
>>End Sub
>>
>>I open my file "A2002 Labels".
>>When I run my report, the above procedure gets executed two times the
>>FIRST
>>TIME I run the report, and it gets executed only once on subsequent runs.
>>
>>This happens each time I open the file.
>>
>>The value of "PrintCount" has a value of 1 or 2 depending on the number of
>>times the procedure gets executed.
>>
>>So where/how does PrintCount get it's value? Is there a way for me to
>>find
>>out how and why this procedure is getting executed twice ONLY when I run
>>the
>>report for the first time?
>>
>>I know there is not much information here, but maybe someone has an idea
>>of
>>how you or I can help myself figure out whats going on here...
>
>
> The events in a report are executed as many times in
> whatever order Access needs to construct the output. The
> FormatCount and PrintCount values are not quite what you
> might think they are and are only useful in special, very
> rigorous situations.
>
> If you'll explain what you're trying to accomplish, perhaps
> someone will be able to suggest an alternate approach.
>
> --
> Marsh
> MVP [MS Access]
.
- Follow-Ups:
- Re: Procedure Variable Value
- From: Marshall Barton
- Re: Procedure Variable Value
- References:
- Procedure Variable Value
- From: bw
- Re: Procedure Variable Value
- From: Marshall Barton
- Procedure Variable Value
- Prev by Date: Re: Access Report Problem, need help please
- Next by Date: Re: Sum Fields which have blank records
- Previous by thread: Re: Procedure Variable Value
- Next by thread: Re: Procedure Variable Value
- Index(es):
Relevant Pages
|