J
jpimp169
I have a form with a bunch of checkboxes representing fields in a table.
Next to this form is a subform restricted to a pivotchart view. When a user
clicks up to 5 of these categories, the categories are inserted into the
filter dropzone in the pivotchart using an "apply filter" button. In the
filter dropzone area, one can select or deselect members of the value list
associated with each category/field. These selections will affect the 3
Min/Ave/Max areas locked in the series dropzone.
What I need to get via VBA code, is the string expression (or however it's
stored) representing the unique filter applied in the filter dropzone area.
(including subset of categories bound by what values in each value list the
user has selected) If I can't get this, I at least need to know the specific
range the applied filters are working on. (this range is used to calculate a
statistical Z-Table for use in percentile calculations since the data does
not follow a standard distribution)
some of my current code is:
Global subFrm As Access.SubForm
Global objChartSpace As chartSpace
Global chConstants
Global dzFilterDropZone
Set objChartSpace = subFrm.Form.chartSpace
Set chConstants = objChartSpace.Constants
Set dzFilterDropZone = objChartSpace.DropZones(chConstants.chDropZoneFilter)
objChartSpace.DisplayFieldButtons = True
'dropZoneArray is calculated via which categories are passed to the subform
'it looks something like ("education", "job title", etc)
objChartSpace.SetData chConstants.chDimFilter, 0, dropZoneArray
segAveSal =
objChartSpace.Charts(0).SeriesCollection(2).Points(0).GetValue(chDimValues)
stdSal =
objChartSpace.Charts(0).SeriesCollection(5).Points(0).GetValue(chDimValues)
thanks in advance
Next to this form is a subform restricted to a pivotchart view. When a user
clicks up to 5 of these categories, the categories are inserted into the
filter dropzone in the pivotchart using an "apply filter" button. In the
filter dropzone area, one can select or deselect members of the value list
associated with each category/field. These selections will affect the 3
Min/Ave/Max areas locked in the series dropzone.
What I need to get via VBA code, is the string expression (or however it's
stored) representing the unique filter applied in the filter dropzone area.
(including subset of categories bound by what values in each value list the
user has selected) If I can't get this, I at least need to know the specific
range the applied filters are working on. (this range is used to calculate a
statistical Z-Table for use in percentile calculations since the data does
not follow a standard distribution)
some of my current code is:
Global subFrm As Access.SubForm
Global objChartSpace As chartSpace
Global chConstants
Global dzFilterDropZone
Set objChartSpace = subFrm.Form.chartSpace
Set chConstants = objChartSpace.Constants
Set dzFilterDropZone = objChartSpace.DropZones(chConstants.chDropZoneFilter)
objChartSpace.DisplayFieldButtons = True
'dropZoneArray is calculated via which categories are passed to the subform
'it looks something like ("education", "job title", etc)
objChartSpace.SetData chConstants.chDimFilter, 0, dropZoneArray
segAveSal =
objChartSpace.Charts(0).SeriesCollection(2).Points(0).GetValue(chDimValues)
stdSal =
objChartSpace.Charts(0).SeriesCollection(5).Points(0).GetValue(chDimValues)
thanks in advance