CWalsh87
Technical User
- Dec 15, 2010
- 16
Hi,
I'm using the following code to sort a pivottable:
I'm happy the code is correct, but the pivottable is not sorting correctly, it's sorting by the "PO Number" (First field in the Pivot table)
The "Prom Date" is in date format and no matter what I do the Pivottable sorts by the "PO Number" field instead
Can anyone help please?
Cheers
Chris
I'm using the following code to sort a pivottable:
Code:
Me.subfrmDeliveries.Form.PivotTable.ActiveView.FieldSets("Prom Date").Fields("Prom Date").SortDirection = plSortDirectionAscending
I'm happy the code is correct, but the pivottable is not sorting correctly, it's sorting by the "PO Number" (First field in the Pivot table)
The "Prom Date" is in date format and no matter what I do the Pivottable sorts by the "PO Number" field instead
Can anyone help please?
Cheers
Chris