AutoRefreshQuery (Property)

Applies To:

QueryOptions object

Description:

Queries the database automatically when an item is added to or removed from the data layout. If Auto-Refresh is disabled, you must click Process or use the Process (Method) to query the database whenever a change is made in the data layout. To improve system performance, it is recommended that when you enable Auto Generate Results option, you disable this property.

Actions:

Read-write, Boolean

Example:

This example shows how to enable the AutoRefreshQuery (Property):

ActiveDocument.Sections["Query"].QueryOptions.AutoRefreshQuery = true