I think the problem is that the quotes are stored in the memo field as
doubles.
I got the code from another message board and modified it. It writes
the memo value stored in the memo field perfectly except the fact that
the qutoes are doubled.
Call from main block:
'Get Transform
Set AddinRS = AddinDB.OpenRecordset("cpxml_Transforms",
dbOpenTable)
AddinRS.Index = "PrimaryKey"
AddinRS.Seek "=", Direction
'Write the transform to a temporary file
Dim TransformWritten As Boolean
TransformWritten = cpxml_makefile(TransformFile,
AddinRS.Fields!Transform.Value)
Function cpxml_makefile(cFile As String, cContent As String) As Boolean
Dim FileNumber As Integer
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile(cFile, True)
a.WriteLine ("")
a.Close
FileNumber = FreeFile
Open cFile For Append As #FileNumber
Write #FileNumber, cContent
Close #FileNumber
'Need to get to return true if it worked
End Function