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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update two columns

Status
Not open for further replies.

2Plan

MIS
Mar 29, 2005
55
US
I'm trying to update two columns but I get a syntax error.
Can someone tell me what's wrong with this syntax? What's the syntax to update two columns?

Thanks.

DoCmd.RunSQL "UPDATE MasterProjectCodes SET (UniqProjCode, UniqProjName) = (3000, 'APC')" _
& " WHERE CommProjCode='320-301' And CommProjName='SAG-Service';
 
Code:
DoCmd.RunSQL "UPDATE MasterProjectCodes SET UniqProjCode=3000, UniqProjName='APC'" _
  & " WHERE CommProjCode='320-301' And CommProjName='SAG-Service';"

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top