Passing parameter from MS Access to a MS SQL 2008 stored procedure

I am looking for a simple example of how to pass the [TempVars] variables from an MS Access VBA to a MS SQL 2008 stored procedure.  
Currently within a MS Access query I am performing an extremely long and complicated expression to retrieve a field value.  The expression is referencing various SQL views and tables linked within the Access db.  This seems inefficient and depending on the user's privileges and timeout parameters, can sometimes error out.

I want to be able to have SQL do the heavy lifting, and just passback the expected query results.

I am using MS Access to produce the output because the SQL application does not have a reporting module I can use.

So to summarize my question, is there a link on setting something like this up?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GPSPOWAuthor Commented:
I have figured this out.  I created a stored procedure sp_Turnover_Data.

From Access I created the pass through query to make available the data from the "sp".

From there I will use another query to extract the data I need.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GPSPOWAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.