Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

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 Comments1 Solution1839 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.
Avatar of Kelvin Sparks
Kelvin SparksFlag of New Zealand image

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

This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers