Identify data source/query in mail merge

A

Ann

I have a word (2000) document created from a mail merge
using data from an Access query.
I would like to include in the word document the filename
of the data source and query. Can someone please provide
the (VBA?) procedure?

Thanks

Ann
 
C

Cindy Meister -WordMVP-

Hi Ann,
I have a word (2000) document created from a mail merge
using data from an Access query.
I would like to include in the word document the filename
of the data source and query. Can someone please provide
the (VBA?) procedure?
This line should return that information for a DDE-linked
Access data source

ActiveDocument.MailMerge.DataSource.Name

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 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
:)
 

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