LastSQLStatement (Property)
Applies To:
QuerySection, Document, PluginDocument object
Description:
Returns the last Structured Query Language (SQL) statement generated by a query.
Action:
Read-only
Example
This example shows how to display the last SQL statement generated by a query in an Alert box:
Alert (ActiveDocument.Sections["Query"].LastSQLStatement)