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!

Dynamically change height of Group header

Status
Not open for further replies.

dkaplan

Programmer
Jan 29, 2001
98
0
0
US
I'm trying to dynamically change the height of a group header on an Access report, depending on conditions.

The group header shrinks as expected, but when conditions change it does not expand.

My code is below:

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If Nz(Me!textBoxWithAvalue, 0) = 1 Then
Me.Label89.Visible = True
Me.GroupHeader0.Height = 0.21
Me.Label89.Height = 0.2082
Me.tbHeader.Height = 0.2083

Else:
Me.Label89.Visible = False
Me.GroupHeader0.Height = 0.01
Me.Label89.Height = 0.01
Me.tbHeader.Height = 0.01

End If

End Sub
 
Actually I did NOT know that. I have to confess I though it was inches. This explains the behavior I was seeing, and I have been able to adjust accordingly.

Thanks, dhookom.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top