Is it possible to use an array or dictionary as the table in a SQL statement.
e.g. strSQL = "SELECT * FROM " & myArray & ""
Thanks in advance.
Is it possible to use an array or dictionary as the table in a SQL statement.
e.g. strSQL = "SELECT * FROM " & myArray & ""
Thanks in advance.
Expanding upon the idea provided by @Nathan_Sav the following code should to it:
Update:
Here is a short sub to manually concatenate / construct the necessary string:
The above code assumes the data to be on sheet1 in the range
A1:G12
where the first row contains the columns headers.SQL array like search function: