By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,708 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

PARAMETERS FOR STORED PROCEDURES (UPDATE, APPEND)

P: n/a
A question concerning Access Project with SQL Server:

I use a stored procedure that is calling several other stored procedure
which update or append values in several tables. All of them are stored
procedures with input parameters by which they filter rows to be updated or
inserted into other tables.
Filtration is based on certain actual values on forms (form with several
subforms).

My question is following: How to pass parameters to those stored procedures
that are triggered by a button?
Those stored procedures are not recordset of forms, so I can't pass it using
Input Parameters property of forms (or I can?).

Thanks.

Zlatko
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Zlatko" <zl**********@pliva.hr> wrote in message
news:cm**********@ls219.htnet.hr...
A question concerning Access Project with SQL Server:

I use a stored procedure that is calling several other stored procedure
which update or append values in several tables. All of them are stored
procedures with input parameters by which they filter rows to be updated
or
inserted into other tables.
Filtration is based on certain actual values on forms (form with several
subforms).

My question is following: How to pass parameters to those stored
procedures
that are triggered by a button?
Those stored procedures are not recordset of forms, so I can't pass it
using
Input Parameters property of forms (or I can?).


Call the parent procedure from your form or from code using ADO,
(preferable), and use sp_executesql within your stored procedure to run the
child procedures from the parent. Look up sp_executesql in BOL for more
info.
Nov 13 '05 #2

P: n/a
On Mon, 8 Nov 2004 11:08:50 +0100, "Zlatko" <zl**********@pliva.hr>
wrote:

I'm assuming you are using ADO. So create a command object, append
some parameter objects to it, and execute it.

-Tom.

A question concerning Access Project with SQL Server:

I use a stored procedure that is calling several other stored procedure
which update or append values in several tables. All of them are stored
procedures with input parameters by which they filter rows to be updated or
inserted into other tables.
Filtration is based on certain actual values on forms (form with several
subforms).

My question is following: How to pass parameters to those stored procedures
that are triggered by a button?
Those stored procedures are not recordset of forms, so I can't pass it using
Input Parameters property of forms (or I can?).

Thanks.

Zlatko


Nov 13 '05 #3

P: n/a
How to solve it without using ADO?

"Tom van Stiphout" <no*************@cox.net> wrote in message
news:53********************************@4ax.com...
On Mon, 8 Nov 2004 11:08:50 +0100, "Zlatko" <zl**********@pliva.hr>
wrote:

I'm assuming you are using ADO. So create a command object, append
some parameter objects to it, and execute it.

-Tom.

A question concerning Access Project with SQL Server:

I use a stored procedure that is calling several other stored procedure
which update or append values in several tables. All of them are stored
procedures with input parameters by which they filter rows to be updated orinserted into other tables.
Filtration is based on certain actual values on forms (form with several
subforms).

My question is following: How to pass parameters to those stored proceduresthat are triggered by a button?
Those stored procedures are not recordset of forms, so I can't pass it usingInput Parameters property of forms (or I can?).

Thanks.

Zlatko

Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.