UPDATE field from a matching

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

UPDATE field from a matching

Post by sal21 »

... i need a query to update the field DT in table A based the match SITO and SITO into the table B.
Update DT into table A with left, 4 of ID from &"-"& DIREZ...

For example sito = ag3 I need:

6788-dir
For example sito = dist I need:

3455-dir1
Last edited by sal21 on 27 Jun 2010, 16:09, edited 2 times in total.

User avatar
HansV
Administrator
Posts: 78558
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: UPDATE field from a matching

Post by HansV »

I'd create the update query in design view, and when it works correctly, switch to SQL view to inspect the SQL string that you need.
Best wishes,
Hans