J
Jinjer
I am working with an Access 2003 mdb which is connected via an ODBC DSN to a
SQL 2005 database. I need to run a SQL stored proc from Access. This stored
proc is not any kind of query; it's a stored proc that runs several other SPs
in the SQL database. I have tried various methods, but keep getting
different errors.
One of the methods I tried is:
sSQL = "EXEC sp_SprocName @SPvar = " & fvVar()
DoCmd.RunSQL sSQL
This method works fine in an Access Project, but this is not a project, but
an mdb. I get the error 3129 Invalid SQL statement; expected 'DELETE',
'INSERT', ...etc.
Any code suggestions that will run this SP?
Thanks,
SQL 2005 database. I need to run a SQL stored proc from Access. This stored
proc is not any kind of query; it's a stored proc that runs several other SPs
in the SQL database. I have tried various methods, but keep getting
different errors.
One of the methods I tried is:
sSQL = "EXEC sp_SprocName @SPvar = " & fvVar()
DoCmd.RunSQL sSQL
This method works fine in an Access Project, but this is not a project, but
an mdb. I get the error 3129 Invalid SQL statement; expected 'DELETE',
'INSERT', ...etc.
Any code suggestions that will run this SP?
Thanks,