troubleshooting Question

How to execute a SQL Server Stored Procedure from an Access front-end?

Avatar of colinasad
colinasadFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft AccessMicrosoft SQL Server
15 Comments2 Solutions1839 ViewsLast Modified:
Over the past 10 years I have developed several applications using SQL Server as the back-end database with Access "projects" (.ADP) as the front-end applications.

Now that the Access ADP Projects are no longer supported by Microsoft I am trying to upgrade one of my smaller projects to SQL Server 2016 and Access 2016. So far I have managed to get my "linked tables" to work OK but I am having problems executing SQL Server Stored Procedures from the Access front-end.

I have attached a VBA sub procedure that has served me well over the years for achieving this with my .ADP Projects. I call it from many places in my VBA code, passing in the name of the Stored Procedures along with an arrary of parameters that have been populated.
Even though this code compiles OK in my new ACCDB application, I get run-time errors suggesting the Tables cannot be updated.
I have attached a screenshot of one of the error messages.
(Looks like I can only attacch one file at a time, so I will raise a second comment with the error message file.)

I have tried to make sense of suggestions on other web-sites but have still not managed to find a solution.
Can somehow hold my hand through changing this sub procedure (or my Stored Procedures) to make it work?

Many thanks.
Kelvin Sparks

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 15 Comments.
Start Free Trial
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 2 Answers and 15 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