INeedAccessHelp
MIS
Here is the code:
CurrentDb.Execute "UPDATE table SET table.COMMENTS =" & "'" & Me![ReqComments] & "'" & " WHERE table.ID = 2;"
The problem comes about when the Me![ReqComments] memo field contains a single quote (example: John's book).
Any help with this would be greatly appreciated. Thanks in advance.
--Rob
CurrentDb.Execute "UPDATE table SET table.COMMENTS =" & "'" & Me![ReqComments] & "'" & " WHERE table.ID = 2;"
The problem comes about when the Me![ReqComments] memo field contains a single quote (example: John's book).
Any help with this would be greatly appreciated. Thanks in advance.
--Rob