How to get SQL string for query in VBA

M

Max Moor

Hi All,
I have a predefined query "qrySales." Is there a way in VB that I
can get the SQL string defining this query into a variable string to
manipulate?

- Max
 
M

Max Moor

strSQL = CurrentDb.QueryDefs("qrySales").SQL

That was quick, Ken. You must have been waiting for me. :) Thanks for
the help. This was just what I needed.

- Max
 
K

Ken Snell

You're welcome.

--

Ken Snell
<MS ACCESS MVP>

Max Moor said:
That was quick, Ken. You must have been waiting for me. :) Thanks for
the help. This was just what I needed.

- Max
 
Top