Microsoft
Software
Hardware
Network
Question : Access DoCmd.runSQL running a SQLServer stored procedure
I am using an Access front end to a SQLServer database. Some VBA uses DoCmd.runSQL to run stored procedures in the database. What is the best way to capture the return from the stored procedure?
Answer : Access DoCmd.runSQL running a SQLServer stored procedure
What is returned from the Stored Procedure? If it's a Recordset, you can just do this:
Dim rst As DAO.Recordset
Set rst = Currentdb.OpenRecordset(Yo
urQueryNam
e)
If it's an Output param, you're probably better off using an ADODB.Command object.
Random Solutions
Report Generation [Access]
How do I stop a PlaySound call that continues output outside the logic of the program that called it?
How to automate a task for Excel
Enable settings which are locked down by Group Policy
MBAM and Superantispyware
SBS2003 - Deploying Printer Via GPO
"Unexpected Unrecoverable Error" in SQL Server 2008 R2 Import/Export Wizard
When setting a Static IP address
Enhancing a VB script to check hostname of the PC before running
Wic card for 1941