referencing mergefield (1 Viewer)

allj

Registered User.
Local time
, 21:58
Joined
Sep 4, 2008
Messages
39
Hi I want to reference a mergefield in a word document from msaccess03. Something like this except this doesn't work. Thanks any help is much appreciated. Alan

Set objword = GetObject("C:\program files\addedforms\mbhp.doc")

Me!test = objword.{mergefield "enddate"}
 
Last edited:

DCrake

Remembered
Local time
Today, 05:58
Joined
Jun 8, 2005
Messages
8,626
Word Merge documents rely on data being provided to it from an external source, such as a database, spreasheet, etc. What you need to do is to identify where the data is sourced and interrogate that. The word document will only "see" the data whilst running the mail merge routine, opening the document as an object will not fire the data grabbing.

David
 

allj

Registered User.
Local time
, 21:58
Joined
Sep 4, 2008
Messages
39
Bummer I was hoping to have this truly linked both ways. Alan
 

Users who are viewing this thread

Top Bottom