Hi
I’m just getting to grips with syntax changes from DAO to ADO. In my old Access 97 code (DAO) I have used several techniques like this:
set dbs=currentDb
dbs.Execute “name of saved query”
————————————————-
or:
set qdf = dbs.QueryDefs(“name of saved query”)
qdf.Execute
————————————————-
or:
set rst=dbs.OpenRecordset(“name of saved query”)
—————————————————
Do these have equivalents in ADO – i.e. can I open or execute saved query names – or do I have to resort to getting the SQL property of the query and executing that (or opening an ADO recordset based on this SQL)?
Thanks
Jeremy