Hi guys,
I've got a complicated CTE query (strQuery) which works as a passthrough query, so I needed to dynamically set some dates in it, and execute it via VBA. I get an error 3129, meaning that it expects, instead of "with", delete, insert, select, or such likes..
Here is the relevant code:
Dim dbs as database
Dim rs as dao.recordset
Set rs = currentdb.openrecordset (
StrQuery, dbopendynaset, dbSQLPassThrough)
Thanks
I've got a complicated CTE query (strQuery) which works as a passthrough query, so I needed to dynamically set some dates in it, and execute it via VBA. I get an error 3129, meaning that it expects, instead of "with", delete, insert, select, or such likes..
Here is the relevant code:
Dim dbs as database
Dim rs as dao.recordset
Set rs = currentdb.openrecordset (
StrQuery, dbopendynaset, dbSQLPassThrough)
Thanks