Access VBA and values to fields in MS-Word
Posted on 1999-01-08
Tools used...Access97, VBA and MSWord.
Want to create a template in Word. In the text there must
be some fields defined (or something else) that can receive
values from Access97 (with VBA). (I create the template from
I want to start word from access, open the template-file
in word and to fill out the fields in the template. All the
automation process must be done from within the access VBA
I also wonder how to check if a certain defined field in
word actually exist?
Eks. Let say that this is the content in the template-file
--------- start of text in template----------
This is just some title text.
Dear *ToName* I'm happy to inform you that we've just
transmitted *AmountDollar* to your account.
------end of text in template --------
Q1: What kind of field do I have to create in MS-Word?
In Access97 VBA code:
Q2: How do I start MS-Word and open the word-template?
Q2: How do I test if a specific defined field acually
exist in the opened template-file from within Access
Q3: How do I put a value in a specific field in the word-
file from Access VBA?