J
JeffreyELewis
Guest
I am trying to copy a memo field from one table to another using a SQL statement in MS Acess 2003 SP1. I have a recordset containing the original table with a memo field called "OldReportRTF". All I want to do is copy this field to another table. (This is a smplified version of what I am doing). So, while looping through the recordset, I generated the following statement:
strQuery = "INSERT INTO tblReports " & _
"("
"[NewReportRTF], " & _
") " & _
"VALUES " & _
"("
"'" & .Fields("OldReportRTF") & "' " & _
")"
DoCmd.RunSQL strQuery
When I run the RunSQL command, I get the following error:
Malformed GUID, in query expression '{\rtf1\ansi\... etc...
Both fields are memo fields, set up exactly the same way. The SQL command ran fine until I added in the memo field.
Any help would be greatly appreciated.
strQuery = "INSERT INTO tblReports " & _
"("
"[NewReportRTF], " & _
") " & _
"VALUES " & _
"("
"'" & .Fields("OldReportRTF") & "' " & _
")"
DoCmd.RunSQL strQuery
When I run the RunSQL command, I get the following error:
Malformed GUID, in query expression '{\rtf1\ansi\... etc...
Both fields are memo fields, set up exactly the same way. The SQL command ran fine until I added in the memo field.
Any help would be greatly appreciated.