QueryOptions object
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.
Read-write, Boolean
This example shows how to enable the AutoRefreshQuery (Property):
ActiveDocument.Sections["Query"].QueryOptions.AutoRefreshQuery = true