Apr 3, 2003 #1 ChrisN Programmer Jul 9, 2001 59 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
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
Apr 3, 2003 1 #2 PaulBricker Programmer Sep 25, 2002 3,554 US 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 Upvote 0 Downvote
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
Apr 3, 2003 Thread starter #3 ChrisN Programmer Jul 9, 2001 59 GB 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 Upvote 0 Downvote
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
Apr 3, 2003 Thread starter #4 ChrisN Programmer Jul 9, 2001 59 GB 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 Upvote 0 Downvote
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