numbering pages on printed forms

A

andrea

Hello
i have a form that could be printed by the user. I would like to see page numbers on the printed output
i have created a textbox (text61) in the form footer and i wrote this code

(more code above
referentecliente.BackStyle =
Text61.Visible = Tru
Text61.Value = Me.Pag
DoCmd.PrintOu
titolo.ForeColor = titolo.Ta
titolobis.ForeColor = titolobis.Ta
commclienti.BackStyle =
(more code below

Code stops at "Text61.Value = Me.Page" saying i cant't reference the page property
Any suggestion
thank
A
 
N

Nikos Yannacopoulos

Andrea,

Change that line to:

Text61 = Me.Page

This should do it.

HTH,
Nikos
 
P

Paul Falla

Dear Andrea
A much simpler solution is to make the Page Footer on your
form visible, add an unbound text box into this area, and
then set the record source property of this text box to
read ="Page " & [Page] & " of " & [Pages]

Hope this helps

Paul
 
A

andrea

Thanks
i will surely tried it
just i would like to understand what was wrong with "me.page"... due to the fact that it is also showed as example on the help. But doesn't work
Thanks agai
andrea
 

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