troubleshooting Question

Calling an SQL Stored Procedure from inside Access VBA

Avatar of jonsuns7
jonsuns7 asked on
Microsoft AccessMicrosoft SQL Server 2008
3 Comments1 Solution526 ViewsLast Modified:
Hi Everybody,

I have a Microsoft Access VBA application that I need to call a stored procedure named "sp_ContactUpdate". When it calls this procedure, it will also pass a parameter as input for the procedure.

Basically, what happens is that after the user clicks a button on a form, a number of tasks take place. This calling of the stored procedure, would be the eighth task.

I have tried to used the following format, but it does not seem to work. I am open to any suggestions. Thank you so much for your help.

EXEC sp_ContactUpdate(Variable_to_be_passed)

In Code it looks like this:
EXEC sp_ContactUpdate(AppRefID)

Something tells me I'm close
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros