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!

PivotTable field’s sort order

Status
Not open for further replies.

pavla

Programmer
Jul 10, 2000
32
0
0
GB
I am using new in Access 2002 pivot table view on a form:

I can sort pivot table fields in, say, row area in order other than alphabetical one by setting the field’s OrderedMembers property:
PivotTableObject.ActiveView.FieldSets(“FieldName”).Fields(“FieldName”).OrderedMembers = Array(“c”,”d”,”a”,”b”)
PivotTableObject.ActiveView.FieldSets(“FieldName”).Fields(“FieldName”).PivotTableObject.Constants.plSortDirectionCustom.

But this does not set this custom sort order to the field’s drop-down list (to select items to display and hide) which drops down from the arrow to the right of the field’s name. How do I set the order of this listing, so that it is other than alphabetical?

Thank you, Pavla.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top