accesser2003
Registered User.
- Local time
- Today, 11:49
- Joined
- Jun 2, 2007
- Messages
- 124
I created a stored procedure in my SQL Server backend. What is the simplest way I can use to run it from the MS Access code and pass its parameters.
Is there is a way similar to what we do with the backend tables where we add them to our Database window by make a link to those in the backend and then deal with them as normal ADO tables. I mean what is the simplest way to run a stored procedure from the MS Access Code and pass its parameters similar to what we do when we run the parameterized quries as
set myproc=currentdb.querydef("myproc")
myproce.parameters('p1')=p1
myproce.execute
My varibles are as follow:
ODBC
ServerName: AMD\BAHRAIN
DSN: BAHRAIN
Database: BAHRAIN
Trusted_Connection="Yes"
Windows NT Authectication
Stored Procedure Name: myproce , parameters: @p1
Is there is a way similar to what we do with the backend tables where we add them to our Database window by make a link to those in the backend and then deal with them as normal ADO tables. I mean what is the simplest way to run a stored procedure from the MS Access Code and pass its parameters similar to what we do when we run the parameterized quries as
set myproc=currentdb.querydef("myproc")
myproce.parameters('p1')=p1
myproce.execute
My varibles are as follow:
ODBC
ServerName: AMD\BAHRAIN
DSN: BAHRAIN
Database: BAHRAIN
Trusted_Connection="Yes"
Windows NT Authectication
Stored Procedure Name: myproce , parameters: @p1