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

Update Query using a SP in an adp project

Status
Not open for further replies.

MikeMcKeown

Programmer
Apr 1, 2003
69
GB
Hi,

I am pretty new to SP's and I have created the SP below:-

CREATE PROCEDURE [update_Practices_1]
(
@No_Old [varchar](6),
@No_New [varchar](6)
)

AS UPDATE [Temp].[dbo].[Practices]

SET [No] = @No_New
WHERE
( [No] = @No_Old )
GO

With @No_Old and @No_New being the values of the combo boxes on a form in an adp project.

I was just wondering how the values of the combo box can be set to the variables in the stored procedure??

Thanks in advance
 
Look up the syntax of the SQL Update statement.

Update YourTable
SET [No] = @No_New
WHERE
( [No] = @No_Old )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top