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

How do I make a footer section conditional?

Status
Not open for further replies.

dfwelch

Programmer
Dec 5, 2003
51
US
I need to know the VB syntax to make a section footer NOT appear based on the value of a field, call it FooterFlag, a boolean field. So, whenever FooterFlag is true, I want the section footer to NOT appear.
 
In the On Format event of the group footer, place code like this:
Code:
If Me.FooterFlag = -1 Then
   Cancel = True
End If

Hoc nomen meum verum non est.
 
This is a good thing to know. Thanks :)

----------------------------------------
Buddha. Dharma. Sangha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top