Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Stored Procedures & Access

Status
Not open for further replies.

WOTRAC

MIS
Nov 22, 2002
36
GB
Is it possible to use a query in a MS Access database, to pass values to the parameters in a SQL Stored Procedure, on a SQL Server 2000 Database.

If so, could anyone point me in the right direction.

 
If the stored proc accepts parameters it is. Do a help search on pass-through queries in Access.
 
You can use Pass-Through queries in an Access MDB or MDE to execute a stored procedure on SQL Server. If you need to change the parameters, you can use code to change the entire SQL property of the pass through query.

CurrentDb.QueryDefs("qsptMyPassThrough").SQL = "EXEC spMyStoredProc '" & Date & "', '" & Me.txtEmpID & "'"

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top