A
Allen_N
I'm trying to change 2 fields in Table1 based on a list of supersessions in
Table2, but I get a syntax error when I try to implement the following SQL
statement in the 'SQL View' window:
UPDATE Table1 a
SET (Grp1, Item1) =
(SELECT
Grp2new,
Item2new
FROM Table2 b
WHERE a.Grp1 = b.Grp2old AND a.Item1 = b.Item2old);
Access doesn't like the "(" after the SET. But, it also complains at the
first "," if I omit the parentheses. Does Access simply not allow multi-field
UPDATE queries?
Thanks!
Table2, but I get a syntax error when I try to implement the following SQL
statement in the 'SQL View' window:
UPDATE Table1 a
SET (Grp1, Item1) =
(SELECT
Grp2new,
Item2new
FROM Table2 b
WHERE a.Grp1 = b.Grp2old AND a.Item1 = b.Item2old);
Access doesn't like the "(" after the SET. But, it also complains at the
first "," if I omit the parentheses. Does Access simply not allow multi-field
UPDATE queries?
Thanks!