Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to unvisible textbox in pagefooter in last page? 1

Status
Not open for further replies.

Fekri

Programmer
Jan 3, 2004
284
IR
Hi,

I should not show a textbox in pagefooter when the report is in last page.

how is it possible?

thanks
Ali
 
You can check the page count.

[tt]Me.txtText.Visible=(Page<Pages)[/tt]
 
Thanks, That's ver well.

another request:
How to unvisible the textbox in pagefooter when the groupfooter printed and groupheader want to start in new page again?

Ali
 
Which page? The one with the groupfooter or the one with the groupheader?
 
the one which is in groupfooter.

because the group is finished and no need any information in the pagefooter.

thanks
Ali

 
Here is some code:

Code:
'This is the top of the report module.
Option Compare Database
Dim blnPrint

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'This turns the textbox on.
    blnPrint = True
End Sub

Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
'This is the footer that you want to turn the textbox off.
     blnPrint = False
End Sub

Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
     Me.txtText.Visible = Page < Pages And blnPrint
End Sub
 
Thanks a lot,

But I'm surprise how this code is working!!
I used this code and it's perfect.
It is the exactly what I need.

But can you explain more about this code how it's workig?

thanks
ali
 
It works because blnPrint is false when the page footer prints, unless a line of detail prints after the group footer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top