Uncheck "Update fields" on your Print options?

Signature
Charles Kenyon
See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> I've created a Word form, and I fill in the fields from
> Access. When I open the document, everything looks fine;
[quoted text clipped - 5 lines]
>
> Kevin
Hi Kevin,
Charles's suggestion should certainly work. But more
correct would be to protect the document as a form... (As
in the command Tools/Protect document - and you do it
BEFORE you put info into the form fields)
> I've created a Word form, and I fill in the fields from
> Access. When I open the document, everything looks fine;
> if I email the document, everythings fine, when I Print
> Prview the document, everything fine, BUT WHEN I GO TO
> PRINT IT THE CONTENTS OF ALL THE FORM FIELDS DISAPPEAR!
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
:-)
Kevin Witty - 28 Jan 2004 22:56 GMT
Cindy and Charles -
Bless you both! Thought I was going nuts (or MS was).
Didn't even KNOW about the Print Option to Update fields.
Guess there must be a reason for this to do what it does if
the box is checked, but it sure doesn't spring readily to mind!
And the Protect Fields works great: it actually takes the
info OUT of the the form fields even if info has been put
in. (I'm copying the original doc to a new name before I
fill in the fields with VBA.)
Thanks, guys! You're lifesavers!
Kevin
>-----Original Message-----
>Hi Kevin,
[quoted text clipped - 21 lines]
>
>.
Cindy M -WordMVP- - 29 Jan 2004 18:39 GMT
Hi Kevin,
> Bless you both! Thought I was going nuts (or MS was).
> Didn't even KNOW about the Print Option to Update fields.
> Guess there must be a reason for this to do what it does if
> the box is checked, but it sure doesn't spring readily to mind!
>
What's happening here is that the form fields are updating. When
form fields are updated in a *unprotected* document, they revert
to the default. And the default default <g> is "empty" (you can
also set a default text in the form fields' Options).
> And the Protect Fields works great: it actually takes the
> info OUT of the the form fields even if info has been put
> in. (I'm copying the original doc to a new name before I
> fill in the fields with VBA.)
Yes, activating protection also forces the fields to update :-)
A couple of points that may come in handy for you in the future:
1. Starting with Word 2002, clicking the "padlock" button in the
toolbar will NOT empty the fields (the menu will still do so,
however)
2. There is an equivalent argument for the Protect method in
the Word object model: NoReset. If you put it = False the form
fields will retain the values; = True you can wipe out the
values.
One additional observation: it sounds like you should be using a
TEMPLATE for this project. Or at least using the Documents.Add
method. Copying and reusing a file in Word is "politically
incorrect" (to say nothing of chancey); using the Add method you
effectively generate a copy (without having to do so explicitly).
And in a template you could have everything preset to the way you
want to have it, to begin with.
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 :-)