TransferText to mailmerge file doesn't work

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?
 
D

david epsom dot com dot au

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top