Form.AllowPivotTableView property (Access)

Returns or sets a Boolean indicating whether the specified form may be viewed in PivotTable view. True if PivotTable view is allowed. Read/write.

Syntax

expression.AllowPivotTableView

expression A variable that represents a Form object.

Remarks

Use the AllowDatasheetView, AllowFormView, AllowPivotChartView, or AllowPivotTableView properties to control which views are allowed for a form.

Example

The following example makes PivotTable view valid for the specified form, and then opens the form in PivotTable view.

Forms(0).AllowPivotTableView = True 
DoCmd.OpenForm FormName:=Forms(0).Name, View:=acFormPivotTable 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.