CreateQueryDef for a pass through query

J

JimP

How can I do this to execute a stored procedure on a SQL Server db? e.g.

strSQL = "Execute....."
Set qdf = CurrentDB.CreateQueryDef("PassThroughQuery", strSQL)

This produces an error, "Invalid SQL statement, expecting SELECT, INSERT
etc..."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top