page number does not change (1 Viewer)

pbuethe

Returning User
Local time
Today, 14:46
Joined
Apr 9, 2002
Messages
210
I have a text box in my page footer with control source

Code:
="Page " & [Page]

This is supposed to give Page 1, Page 2, etc. However every page is coming out as Page 1. Any help is appreciated. Thanks!
 

Fifty2One

Legend in my own mind
Local time
Today, 11:46
Joined
Oct 31, 2006
Messages
1,412
I have a text box in my page footer with control source

Code:
="Page " & [Page]

This is supposed to give Page 1, Page 2, etc. However every page is coming out as Page 1. Any help is appreciated. Thanks!

It doesnt need the [] around the page.
To get Page x or y use
= "Page " & Page & " of " & Pages
or just to get Page x
= "Page " & Page
 

pbuethe

Returning User
Local time
Today, 14:46
Joined
Apr 9, 2002
Messages
210
It doesnt need the [] around the page.
To get Page x or y use
= "Page " & Page & " of " & Pages
or just to get Page x
= "Page " & Page

Hi Fifty2One,

It puts the brackets around Page automatically. If I take them off it puts them back on. I changed it to
= "Page " & Page & " of " & Pages
but it still was Page 1 of 3 on every page. I even copied this from another report where it worked. There must be something weird about this report. This has worked on every other report I have used it on. Why would it not work on just this one report? The report does not seem to have any code behind it.
 

pbuethe

Returning User
Local time
Today, 14:46
Joined
Apr 9, 2002
Messages
210
It doesnt need the [] around the page.
To get Page x or y use
= "Page " & Page & " of " & Pages
or just to get Page x
= "Page " & Page

Hi Fifty2One,

It puts the brackets around Page automatically. If I take them off it puts them back on. I changed it to
= "Page " & Page & " of " & Pages
but it still was Page 1 of 3 on every page. I even copied this from another report where it worked. There must be something weird about this report. This has worked on every other report I have used it on. Why would it not work on just this one report? The report does not seem to have any code behind it.
 

paultax

Registered User.
Local time
Today, 18:46
Joined
Dec 3, 2007
Messages
30
It should have the square brackets
="Page " & [Page] & " of " & [Pages]

I've had a number of really wierd problems with access where things stop working for no reason at all. Only the other day every event on a form i'd spent hours on stopped working for absolutely no reason. I ended up having to cut and paste the whole lot onto a new form which curiously fixed it...
Have you tried this? I bet that'll work
 

pbuethe

Returning User
Local time
Today, 14:46
Joined
Apr 9, 2002
Messages
210
paultax,

I copied all the controls onto a new report and it worked. Thanks for the suggestion!
 

Users who are viewing this thread

Top Bottom