Hi Matthew,
> I have find the following code to overwrite the mailmerge field with the
> recordset value. but find error occur while there is null field of recordset
> value.
Well, leaving aside the question whether merge fields are really meant for
this sort of thing (they're NOT!), which line of the code you posted is
causing the error?
Generally, since Word works entirely with strings, for an null string value
you can append and empty string: & ""
Not sure if this is the answer you're looking for, but perhaps it is :-)
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)