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!

what is this query when written as a stored procedure?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
I have the following query in access:
UPDATE ADOPT INNER JOIN tblBrsCodes ON (ADOPT.brsno = tblBrsCodes.BrsCode) AND (ADOPT.road = tblBrsCodes.Road) SET ADOPT.BrsID = tblBrsCodes!BrsID;

We are in the process of switching to a SQL Server databasem, with an Access project front-end.

Any ideas how I can achieve this? James Goodman
j.goodman00@btinternet.com
 
you can try this:

UPDATE ADOPT A
SET A.BrsID = (SELECT BrsID
FROM tblBrsCodes B
WHERE B.BrsCode = A.brsno
AND B.Road = A.road )

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top