For some reason I'd like to run some sql when a button is pressed. Unfortunately acces comes up everytime with a stern warning that I am to change n records. That was exactly the intention of a SQL update statement, so the warning is not needed. How can I get rid of it?
This is the code in question:
CODE
SQL = "UPDATE tbl_CPI SET tbl_CPI.Status = '20' WHERE tbl_CPI.Status = '10';"
DoCmd.RunSQL SQL, no
DoCmd.RunSQL SQL, no