I am working on an Access 2003 database with a SQL Server 2005 back end.
I need to run a SQL Server Stored Procedure that requires one input parameter (to run a process) and an output parameter to show whether the process was successful.
I have created the SP and pass thru query but I cannot seem to code the VBA to make this work successfully. The code I am using is (derived from another thread):
Dim qdef As DAO.QueryDef
Set qdef = CurrentDb().QueryDefs("qrySendBatch")
qdef.sql = "exec sp_SendBatch " & list15.value
qdef.CreateProperty.Properties.Refresh
Any help would be appreciated.
I need to run a SQL Server Stored Procedure that requires one input parameter (to run a process) and an output parameter to show whether the process was successful.
I have created the SP and pass thru query but I cannot seem to code the VBA to make this work successfully. The code I am using is (derived from another thread):
Dim qdef As DAO.QueryDef
Set qdef = CurrentDb().QueryDefs("qrySendBatch")
qdef.sql = "exec sp_SendBatch " & list15.value
qdef.CreateProperty.Properties.Refresh
Any help would be appreciated.