Apparently you are trying to enter the line of code into the
OnFormat property. Instead, you should put it into the
Format event procedure. The OnFormat property needs to
have:
[Event Procedure]
If you don't know how to find the event procedure, just
click on the code builder button [...] at the right edge of
the event property.
--
Marsh
MVP [MS Access]
ssims30 wrote:-
Thank you so much for your help. I have looked all over the internet to no
avail. I have added the new page break and named it pgNew and made sure that
the Force New Page was set to before section. I then copied your code and
added to the Customer Group Header. I recieves this error:
Access can not find the macro 'pgNew"
I then added an equal sign to the equation (thinking, that maybe it needed
it) so it read as follows:
=pgNew.Visible = (Me.Page Mod 2 = 0)
and recieved this error:
The object does not contain the Automation object 'Me'
My report is over 2000 pages and I really don't want to have to take into
into a pdf and add blank pages, so any help would be so appreciated!!
Stacey