#1   Report Post  
Jonathan
 
Posts: n/a
Default Mergo to fields

Hi,

I build a form I locked and would like to merge and use the merged data as
default value for each field of the form (or fill i nthe form with the
imported data).

I tried to set the default value of the fields to = { MERGEFIELD Name }
but it does not work. I tried some macro too but failed.

Thanks

PS : Word 2000
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

In Word 2000 the only way you could really do this would be to write a macro
that fills in the data and produces an output document for each record in
the data source. It wouldn't actually be a Word merge, but you could use the
MailMerge.DataSource.DataFields collection to get the values of the various
fields and insert them into your form. Alternatively you could (and probably
should) avoid MailMerge altogether and just use ADO or some other interface
to get your data and do the same thing.

I don't have sample code for that.

In Word 2002 or later you might be able to use the mail merge events to do
something similar.

However, just merging to an output file may not be what you really want to
do anyway - if you do not want to preserve the form fields for use by other
people, there would be no real need to use Form fields. If you do want to
preserve the form fields, you would also probably be better off generating
forms anf accompanying data from scratch in VBA.

Peter Jamieson

"Jonathan" wrote in message
...
Hi,

I build a form I locked and would like to merge and use the merged data as
default value for each field of the form (or fill i nthe form with the
imported data).

I tried to set the default value of the fields to = { MERGEFIELD Name }
but it does not work. I tried some macro too but failed.

Thanks

PS : Word 2000



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASK and FILLIN fields in INCLUDETEXT documents do not merge correc ChrisM Mailmerge 3 April 12th 05 04:05 AM
Having multiple form fields automatically updated jrwaguespack Microsoft Word Help 3 March 25th 05 07:43 AM
Custom Fields in Word 2002 (XP) [email protected] Microsoft Word Help 1 January 20th 05 03:46 AM
Attempting to auto-update fields in a word document Sanin R Microsoft Word Help 1 January 7th 05 06:39 PM
Using MAILMERGE fields within HYPERLINK fields for Merge to Email Mark V Mailmerge 2 December 4th 04 04:01 PM


All times are GMT +1. The time now is 06:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"