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!

Conditionally formatting report sections 1

Status
Not open for further replies.

ChrisN

Programmer
Jul 9, 2001
59
0
0
GB
Is it possible to hide/supress a group header based on the value of a field in a higher level group??

Thanks in advance.
Chris
 
Probably. In the Format Event for the lower Group Header you would use something like this.

If Me.HigherGroupHeaderValue = "ABC" Then
Me.LowerGroupHeader.visible = False
Else
Me.LowerGroupHeader.visible = True
End If

Now the success of this will depend on exactly what you are trying to do but it's a starting point for you.

Paul
 
Thanks Paul,

That kind of works but hides all group headers.

What I am requiring is as follows;

If TopGroup = 1 then show low group header otherwise if topgroup = 2 then hide low group header but obviously only within that top group.

Hope this gives you a bit more information as to what I am looking for.

Chris
 
OK thanks, I cracked it!

I was just trying to call the value in my text control (in the higher group) incorrectly so your code worked fine!

Thanks again,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top