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!

passing parameters to stored procedure

Status
Not open for further replies.

Machiaveli

Programmer
Dec 16, 2003
91
NL
Hello,

I've a form with a listbox where i want to pass the value of the listbox to the pass-through-query which then executes an stored procedure with an parameter.

The problem is that i can make it work. I've done the following in the pass-through-query:

exec usp_test [forms]![frmTest]![lstBox]

Is this correct?
 
Nope, SQL Server doesn't recognize that format. In SQL Server, it's:

exec usp_test param1, param2

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top