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..."
 
Top