Hello,
I have the following docmd statement the I need to set the location Id to 0000002 where the Office is St. Margaret's Center
DoCmd.RunSQL "UPDATE CurrentDay_Template SET CurrentDay_Template.LocationID = '0000002' " _
& "Where (((CurrentDay_Template.GroupNo) = 'CFDS') And ((CurrentDay_Template.[Client Office]) = 'St. Margaret's Center')) "
I get a syntax error missing operator in query expression. The reason I think is becuase of the ' in Margaret's
I can not change the office name.
Thanks
I have the following docmd statement the I need to set the location Id to 0000002 where the Office is St. Margaret's Center
DoCmd.RunSQL "UPDATE CurrentDay_Template SET CurrentDay_Template.LocationID = '0000002' " _
& "Where (((CurrentDay_Template.GroupNo) = 'CFDS') And ((CurrentDay_Template.[Client Office]) = 'St. Margaret's Center')) "
I get a syntax error missing operator in query expression. The reason I think is becuase of the ' in Margaret's
I can not change the office name.
Thanks