Hi Everyone,
I am also experiencing the same problem but with Access 97. I created a query definition recordset and use this statements to execute to the SQL backend.
Set Canvass = Createquerydef (Pipeline)
With Canvass
.connection = "ODBC CONNECTION
.str="Select * from Test"
.Returnvalue = True
end canvass
*Note: not the exact statements.
When I changed to .str="Exec Sampleprocedure", it doesn't create the querydef. However when I use an existing query and manually replace the sql statement to "Exec Sampleprocedure", it works.
If I use the docmd.runsql statement, how do I get the access the returned data?
Thank you.