Statements Property |
home |
SQL | ||
Statements | ||
Statement |
The Statements property of the SQL object contains the collection of statements. Use the SQL.StatementCount property to find the total number of statements in this collection. The statements are numbered 1 to StatementCount.
SQLXL.SQL.setText("select * from emp; select * from dept;")
For l = 1 to SQLXL.SQL.StatementCount 'Print the SQL statement in a message box MsgBox SQLXL.SQL.Statements(l).Text Next l