Fred,
Thanks for your assistance, but I must still be doing something wrong.
My report has 3 sorting and grouping. The report has a order header
grouping and a product footer grouping, then a order footer for
summing.
Example...
In Page header, it has the following info...
Order #, Date, page x of xx
In Order header... nothing here.
In Product footer...
Product ABC
Product DEX, etc..
In order footer...
Total for each order #
I don't have anything in page footer. I tried adding the page
numbering there but it still says 'page 1 of 67', should be 'page 1 of
2'
I changed the control name to just 'ctlgrppages'.
JC,
Regarding:
I added an unbound text box in page footer and rename it
Me!ctlgrpPages.<
Changing 'Me!Salesperson' to 'Me!OrderNo' in the VBA code is correct.
Also retain the Me!ctlgrpPages in the VBA code.
However, do NOT NAME the Report control using the Me keyword.
Me is correctly used in the VBA code sheet to refer to the current object
(the Report in this case), however it cannot be used in an Access control's
name.
Change the name of the Page Footer control to just:
ctlgrpPages
Also make sure you have added a control to compute [Pages] in the page
footer.
Something like
="Page " & [Page] & " of " & [Pages]
or simply
= [Pages]
will do nicely.
You can make the control not visible if you don't wish to show the total
number of report pages.
--
Fred
Please reply only to this newsgroup.
I do not reply to personal e-mail.
JC said:
Hi,
I'm not good at coding, so any help would be appreciated..
I have copy and paste the code in the code builder section under
(General).
I renamed 'Me!Salesperson' to 'Me!OrderNo' which is the field name for
my group.
I added an unbound text box in page footer and rename it
Me!ctlgrpPages. I not sure what I'm doing wrong but nothing is
happening, when I run the report.
Thanks.
"Fredg" <
[email protected]> wrote in message
Look at the Reports section at:
http://www.mvps.org/access
--
Fred
Please reply only to this newsgroup.
I do not reply to personal e-mail.
I have a report that is group by invoice #. On accasion, there are 2
or more pages per invoice #. How can I get the report to print page
number in each group instead of the whole report. I need it to print
'page 1 of 2' instead of 'page 1 of 67' which is the entire report.
Thanks.