[ anebojsa @ 27.01.2007. 21:07 ] @
VB.NET i Access 2000
select i update

imam 2 tabele:
Table1
Table2

Table1 ima polja:
id
korisnik
veza

Table2 ima polja:
id
sel
korisnik

napravim upit
SELECT Table2.* FROM Table1 INNER JOIN Table2 ON Table1.KORISNIK = Table2.KORISNIK WHERE (((Table1.KORISNIK)='1') AND ((Table1.VEZA)='a'))

sad me interesuje kako da update-ujem Table2 (polje sel) sa vrednoscu X pod gore navedenim uslovom
UPDATE Table2 set SEL ='X' WHERE (((Table1.KORISNIK)='1') AND ((Table1.VEZA)='a'))

dobijem gresku
Syntax error in query. Incomplete query clause.

probao sam
UPDATE Table1, Table2 set SEL ='X' WHERE (((Table1.KORISNIK)='1') AND ((Table1.VEZA)='a'))
nevredi

potrebna pomoc