Invalid Merge Field

W

workholicme

Hi,

I am having a problem with Word mail merge, when called by Word
Automation. On occassion, the data will be missing a field, and Word
throws up an "Invalid Merge Field" message box, which requires manual
intervention to replace or remove the offending field.

I really need to be able to automate this piece too, but have read
many posts on the web saying that this is not possible. Even setting
DisplayAlerts to none does not work. I am using Word 2003, but am
wondering if this issue is resolved in Word 2007, or similar?

Can anybody give me some advice about this?

Many thanks
 
F

foxdev

To keep from having that issue, I make sure my datasource always has the same
structure. If the field is empty the the document displays blank for the at
field and I don't get that error. Depending on the automation code you use,
it may break in Word 2007. Mine did. Hope this helps, foxdev
 

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