RunQSheet()

Validates and runs the specified query sheet.

Syntax

Public Function RunQSheet(QSheet as Worksheet, Optional Quiet As Boolean) _ 
                          As Integer 

Input

ValueDescription
 QSheetMust be a Worksheet object referencing the q-sheet to be run.
 Quiet(optional) If True, will not prompt user or display interactive error messages.

Return value

ValueDescription
 0success
 1failure
 -1fatal error (further query attempts are likely to fail)

Example

Example usage:
result = a1010data.RunQSheet(Worksheets("_1010q my qsheet"))