Cindy;
Thanks, that did the trick. Your help is greatly appreciated.
--
Regards
Michael Koerner
Hi Michael,
I must be missing something. Entered your code, now if there is an actual value
in that cell it does not insert it. All the records are blank.
{ IF { MERGEFIELD NUMBER } = 0 "" { MERGEFIELD NUMBER } }
Word can get really picky about numbers and such... Try it this way (pay special
attention to the "quotes"):
{ IF "{ MERGEFIELD NUMBER }" = "0" "" "{ MERGEFIELD NUMBER }" }
Another thing you could try would be to explicitly format that column as text,
using the Text to column tool in Excel's DATA menu. The other way to go would be
to use a different connection method (DDE or Word's internal spreadsheet
converter, for example). You'll find instructions for that in the Word 2002
section of my website.
I imagine the reason you see a different behavior in Office 2003 is because so
many people complained of exactly this behavior in Word 2002
And I believe
it
originates in how the ODBC driver (which OLEDB uses for Excel) picks up data
from
"numerical" columns.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail