Link to home
Start Free TrialLog in
Avatar of BillTr
BillTr

asked on

access vba inner join update

Syntax error. I need some help with an inner join in vba. Newbie stuff.. Thx
sSql = "UPDATE CData INNER JOIN pdata_positions ON (pdata_positions.Field13 = CData.ID) SET CData.name = pdata_positions.name;"

Db.Execute sSql

Open in new window

Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

sSql = "UPDATE CData SET CData.name = pdata_positions.name FROM CData INNER JOIN pdata_positions ON (pdata_positions.Field13 = CData.ID) ;"

Kelvin
Avatar of BillTr
BillTr

ASKER

Sorry, that is giving me a runtime error  3075
SOLUTION
Avatar of BillTr
BillTr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BillTr

ASKER

My solution was valid... but hnasr improved on it.