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';
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';