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!

Referencing Controls in Page Footer Only

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I am trying to test the Tag value of controls in the PageFooter section of a report. Their visibility depends on their value. Is there a way to reference only the pagefooter controls instead of looking through all the controls on the report.

I am currently using
Dim ctl as Control
For Each ctl in Reports.Controls

Next ctl
 
If the code is running in the report, try something like:
Code:
Dim ctl as Control 
For Each ctl in Me.Section(4).Controls

Next ctl

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
How are ya EddyLLC . . .

. . . or
Code:
[blue]   Dim ctl As Control
   
   For Each ctl In Me.[purple][b]PageFooterSection[/b][/purple].Controls
      [green]'Your Code Here[/green]
   Next[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top