QueryInProcess (Property)

Applies To:

Document object

Description:

Identifies the name of the query being processed. This property is only appropriate for use in the OnPreProcess() and OnPostProcess() events.

Action:

Read-only, String

Example:

This example shows how to display the name of the query being processed in an Alert box:

Console.Writeln("Start OnPreProcess")
switch(ActiveDocument.QueryInProcess)
{
case "Query": 
Alert("Query");
break;
 case "Query2":
 Alert("Query2");
break; 
case "OLAPQuery": 
Alert("OLAPQuery");
break; 
default: Alert("Default");
break;
}