Would someone please let me know what I'm doing wrong in this code?
I'm trying to do an update query and suppress the warnings that show up when you run the code. The code works fine on it's own without the SQL string. Thanks for your support.
I'm trying to do an update query and suppress the warnings that show up when you run the code. The code works fine on it's own without the SQL string. Thanks for your support.
Code:
Dim strSQL As String
strSQL = "UPDATE tblCountry INNER JOIN Query1 ON tblCountry.CountryID=Query1.CountryID SET tblCountry.ChkDST = Query1.Active;"
CurrentDb.Execute strSQL, dbFailOnErrors