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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing in number to Stored Procedure

Status
Not open for further replies.

Jusenkyo

Programmer
Aug 16, 2002
295
GB
Hello all

I have a stored procedure which requires an input perameter, Contract_No.
I want to run this from VB, and pass in a number from a form.

I know how to do this in a normal access query, but the stored procedures dont seem to allow where clauses to input perameters.

Any ideas?
Cheers
J
 
could you post your query (SQL). It should work.

How are you getting the information from the form to to query are you using something like the following

[forms]![FORM_NAME]![FIELD_NAME]

I mostly always use the WHERE clause to query information from a form in a query and have no issues in the past

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top