A
Allen Browne
Assign it to the SQL property of a query.
For example, if you have a query named Query2:
strSql = "SELECT * FROM Table1;"
Currentdb.QueryDefs("Query2").SQL = strSql
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
"Powering Queries with VB" <Powering Queries with
(e-mail address removed)> asked the question in the subject in message
news:[email protected]...
For example, if you have a query named Query2:
strSql = "SELECT * FROM Table1;"
Currentdb.QueryDefs("Query2").SQL = strSql
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
"Powering Queries with VB" <Powering Queries with
(e-mail address removed)> asked the question in the subject in message
news:[email protected]...