Hi Sander,
Well, you basically have two choices
1. You can change to using a DDE connection to the Access
data source so that the user can answer a parameter query in
the Access interface.
2. You can display a UserForm when a new document is
generated from the template for the user to type the
information. The macro can then set the .QueryString property
for the mailmerge.datasource
which approach to use will depend on how you want the users
to interface, what your programming background is, and
whether the template project may even have macros...
> I am having a database with customers and now i am
> creating word merge template's which I would like to use
[quoted text clipped - 17 lines]
> Help would be very appreciated.
> I have Word and Access 2002
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 :-)
Sander - 18 Dec 2003 11:57 GMT
Hi Cindy,
my programming background is VB6.0 just from the books. So
I am not a Expert yet.
They are allowed to do macro's. I think that with the DDE
connection is the easiest way for me. But where do I setup
the DDE connection then. Is it in Word of my Access
database?
And if you have maybe a example or more tricks to do this
I would be very happy.
Kind regards
Sander.
>-----Original Message-----
>Hi Sander,
[quoted text clipped - 46 lines]
>
>.
Cindy M -WordMVP- - 18 Dec 2003 17:25 GMT
Hi Sander,
> They are allowed to do macro's. I think that with the DDE
> connection is the easiest way for me. But where do I setup
> the DDE connection then. Is it in Word of my Access
> database?
Assuming these templates already have the connection to the
required query, you wouldn't need any additional programming
code. You can set up the connection in the template, and
everything will be hunky-dory (probably).
Activate "Confirm conversions on open" in
Tools/Options/General, then attach to the Access database
again. From this point on, you'll see a slightly different
series of dialog boxes...
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 :-)