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!

Access Pivot Table Form

Status
Not open for further replies.
Aug 27, 2002
19
US
The following code works fine when the pivot table data is in a worksheet in an Excel workbook:

ActiveSheet.PivotTables("PivotTable1").PivotFields("PRODUCT LINE").PivotItems.Select
With ActiveSheet.PivotTables("PivotTable1").PivotFields ("PRODUCT LINE")
.PivotFields("BONE MARROW TRANSPLANT").Visible = False
.PivotFileds("BURNS").Visible = True
End With

However in my Pivot Table created in an Access(2000)form, I get the following error message:
Run-time error '1004': Unable to set the Visible property of the PivotItem class.
Anyone know how to make this work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top