TryingMyBest
Registered User.
- Local time
- Today, 14:44
- Joined
- Nov 18, 2004
- Messages
- 54
Hi,
I have several memo fields in my application which all work well until someone uses quotation marks in their text. At this point the operation to update the table fails.
Is there a way round this please? Or is there a way to display a message if the memo field contains a certain character? The user's typically copy and paste text into the memo fields.
An example of my code for updating the table is as follows:
Jo
I'm using Access 2002 on Windows XP.
I have several memo fields in my application which all work well until someone uses quotation marks in their text. At this point the operation to update the table fails.
Is there a way round this please? Or is there a way to display a message if the memo field contains a certain character? The user's typically copy and paste text into the memo fields.
An example of my code for updating the table is as follows:
Code:
Dim strSQLDescription As String
strSQLDescription = "UPDATE TBLNCRRecords SET TBLNCRRecords.Description = """ & [Forms]![frmNonConformities]![txtNCRDescription] & """ WHERE (TBLNCRRecords.NCRNumber) = " & [Forms]![frmNonConformities]![txtNCRNumber] & ";"
DoCmd.RunSQL strSQLDescription
Jo
I'm using Access 2002 on Windows XP.