TransferText to mailmerge file doesn't work

  • Thread starter Thread starter jane
  • Start date Start date
J

jane

I want to create a word doc file so I have the following
line of code:

DoCmd.TransferText
acExportMerge, , "DonationAckMergeFile", "c:\data\test.doc"
, True

This always returns the error "Cannot update. Database or
Object is readonly". When I change the output
from 'Text.doc' to 'text.txt' I have no problems, but it's
creating a text file, not a word file.

How can I create the output in a word document format?
 
Yes, in a moment of brilliance, MS decided that MailMerge
files can't be called .doc, or .rtf (in spite of the fact
that they are RTF word documents....).

The easy solution is just call the file .txt


(david)
 
Back
Top