On my form, I am trying to update one field in a table where results are based on two fields.
My code that is not working is:
DoCmd.RunSQL ("UPDATE tbl_1 SET [Field3]=(""" & Yellow & """) WHERE [Field1]=(""" & Brown & """) & [Field2]=(""" & Blue & """);")
I have only been able to update with the DoCmd.SQL statement based on one WHERE statement, not two.
My code that is not working is:
DoCmd.RunSQL ("UPDATE tbl_1 SET [Field3]=(""" & Yellow & """) WHERE [Field1]=(""" & Brown & """) & [Field2]=(""" & Blue & """);")
I have only been able to update with the DoCmd.SQL statement based on one WHERE statement, not two.