MS Access front end SQL 2008 backend
This runs fine in SQL Server query but throws a Run-Time 3075 syntax missing operator error when executed from a form command button
Dim strCountryCd As String
strCountryCd = "UPDATE contact set tblContact.mailingcountry = tblIMT_IOT_Country_name.CountryCode from tblIMT_IOT_Country_name where tblcontact.mailingcountry = tblIMT_IOT_Country_name.CountryName;"
DoCmd.RunSQL (strCountryCd)
Am I missing something simple?
This runs fine in SQL Server query but throws a Run-Time 3075 syntax missing operator error when executed from a form command button
Dim strCountryCd As String
strCountryCd = "UPDATE contact set tblContact.mailingcountry = tblIMT_IOT_Country_name.CountryCode from tblIMT_IOT_Country_name where tblcontact.mailingcountry = tblIMT_IOT_Country_name.CountryName;"
DoCmd.RunSQL (strCountryCd)
Am I missing something simple?