B
Brian
HI
In DAO I can retrieve the actual SQL string that makes up
a query by doing the following:
Dim qrs as QueryDef
Dim strSQL as string
Set qrs = CurrentDb.QueryDefs("qryReportsGeneric")
strSQL = qrs.SQL
The value of strSQL is then "SELECT * FROM..."
However, I seem to be unable to do this using ADO. I've
tried many different ways using both command and
recordset objects and cannot get this string. Is there
an ADO equivalent to the QueryDef SQL property?
Any help would be greatly appreciated.
Brian
In DAO I can retrieve the actual SQL string that makes up
a query by doing the following:
Dim qrs as QueryDef
Dim strSQL as string
Set qrs = CurrentDb.QueryDefs("qryReportsGeneric")
strSQL = qrs.SQL
The value of strSQL is then "SELECT * FROM..."
However, I seem to be unable to do this using ADO. I've
tried many different ways using both command and
recordset objects and cannot get this string. Is there
an ADO equivalent to the QueryDef SQL property?
Any help would be greatly appreciated.
Brian