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!

Set VISIBLE property of sub detail group footer to NO in ACCESS 1

Status
Not open for further replies.

kjenkinz

Technical User
Jan 24, 2003
16
US
I want to set a the VISIBLE property of one of my sub-detail footer lines to NO based on the value of a field. For instance, I am sub-totaling on a group, lets say the groups are A and B. When the [GrpTyp] field="B", I don't want to show the sub-total footer. How do I do that?

Thanks!
 
In the On Format event of your group footer place code like this:
Code:
If Me.GrpTyp field = "B" Then
   Me.txtSubTotal.Visible = False
Else
   Me.txtSubTotal.Visible = True
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top