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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Report Question: Hide fields for a specific group heading

Status
Not open for further replies.

Derick1229

Programmer
Jun 20, 2006
2
US
I have a question that is currently driving me crazy:

I created a report from a query and have a Group Header for the field called 'txtHeaders'. When this field equals "Interfaces" then I need hide/unhide several fields in the Detail section. I would think that this would be fairly simple but for whatever reason my approaches are not working. How would I go about doing this in vba?
 
Add code to the On Format event of the Detail Section.
Code:
  Me.txtA.Visible = (Me.txtHeaders = "Interfaces")
This assumes txtHeaders is a bound text box in the report.


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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top