The underlying database has a Memo field called NOTES with it's property set to Rich Text.
When I try to enter some text enclosed in apostrophes/single quotes (eg. 'test') into the form field Notes and press my save button to do an update I run into a problem as enclosed in the text file.
Is there anyway to capture the apostrophe/single quote into the table and retain all the RTF features ? Need help on this.
Here is my update statement
Expand|Select|Wrap|Line Numbers
- SQLUpdMain = "UPDATE CA_NIGHTLY SET AUDIT_DATE =#" & Me.txt_main_aud_date & "#," & "AUDIT_STATUS =" & "'" & Me.cbo_main_aud_status & "',"
- SQLUpdMain = SQLUpdMain & "NOTES =" & "'" & Me.txt_main_Notes & "'" & ",OVERPAID =" & Ovp_Cur & ",UNDERPAID =" & Unp_Cur
- SQLUpdMain = SQLUpdMain & ",UPDATED_BY =" & "'" & strUser & "'," & "UPDATED_DATE =#" & CurrentDate & "#"
- SQLUpdMain = SQLUpdMain & " WHERE AUDIT_CLAIM_NUMBER =" & [Forms]![frmMain]![txt_main_aud_clmno].[Value]