I am trying to save the value of a text field on the access form into a table using Update statement.
CurrentDb.Execute "UPDATE PATIENT SET DROPOUT_REASON = '"&
txtReasonDO.Value & "' WHERE PATIENT_ID = "& 1 & ";"
I get errors when I have commas or quotation marks in the text fields, but when I remove all the punctuation then it is working fine. Anyone knows how I can save the text fields, so it also allows me to store commas and quotations.
CurrentDb.Execute "UPDATE PATIENT SET DROPOUT_REASON = '"&
txtReasonDO.Value & "' WHERE PATIENT_ID = "& 1 & ";"
I get errors when I have commas or quotation marks in the text fields, but when I remove all the punctuation then it is working fine. Anyone knows how I can save the text fields, so it also allows me to store commas and quotations.