QueryTable.Recordset Property
Returns or sets a Recordset object that's used as the data source for the specified query table. Read/write.
Syntax
expression.Recordset
expression A variable that represents a QueryTable object.
Remarks
If this property is used to overwrite an existing recordset, the change takes effect when the Refresh method is run.
Example
This example changes the Recordset object used with the first query table on the first worksheet and then refreshes the query table.
| Visual Basic for Applications |
|---|
|