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 Supress Footer

Status
Not open for further replies.

mtownbound

Technical User
Jan 28, 2002
293
0
0
US
So trying to conditionally suppress group footers with the following, in the On Format event, but it's still showing all footers:

GroupFooter0.Visible = (txtBrand = "Nike")



Thanks
 
Tried in the On Fromat event, but the footer is still showing with:

Cancel = (txtBrand = "Nike")
 

Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)

Cancel = (txtBrand = "Nike")

End Sub
 
mtownbound,
[ol 1]
[li]What are the results of the debug.print?[/li]
[li]Does your code compile?[/li]
[li]Do you have a text box named txtBrand?[/li]
[li]Is it actually a text box or combo box?[/li]
[li]Can you please prefix your control names with "Me."?[/li]
[/ol]

Duane
Hook'D on Access
MS Access MVP
 

Not isolated to just this report. Tried this code on several different reports and it isn't working on any of the text boxes (prefixed them all with Me.).
 
It compiles with no problem; it's actually a text box called txtBrand; prefixed with "Me." Opening with report view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top