Update Mergefields into new document

P

papou

Hi all
Word 2000 SP 3
I have a Word template with fields related to an Access query
(The Access query finds the records corresponding to the user's Windows
Login using a GetUserName function)
I am updating my word template fields automatically using MailMerge.Execute
I do not find this satisfactory since
1°) I end up with two generated documents:
-one will be based on my template but with no fields updated (which I am
actually closing without saving)
-the other will be the result of my mail merge operation with the correct
information.
2°) I'd rather get the username from Word but then I can't figure out how to
update my fields?
Can somebody help me achieve this?
TIA
Regards
Pascal
 
D

Doug Robbins - Word MVP

Hi Pascal,

See the article “Access a database and insert into a Word document the data
that you find there” at:

http://www.mvps.org/word/FAQs/InterDev/GetDataFromDB.htm

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
P

papou

Hello Doug
Thank you very much for your answer, I will have a look at your suggestion.
Best regards
Pascal
 

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