I pasted the following sql query behind a command button to change the text in a text box from OPEN to CLOSE but I am getting an error message. Can someone tell me what's wrong?
dim sql as string
sql = "UPDATE tbl_CARGeneral SET tbl_CARGeneral.Status = "CLOSE""
sql = sql & "WHERE (((tbl_CARGeneral.Status)="OPEN"));"
docmd.runsql sql
dim sql as string
sql = "UPDATE tbl_CARGeneral SET tbl_CARGeneral.Status = "CLOSE""
sql = sql & "WHERE (((tbl_CARGeneral.Status)="OPEN"));"
docmd.runsql sql