Access to Word merged doc displays and disappears

P

Penny

Hi All,

I have Access code that merges fields retrieved by a query into a Word doc
based on a template(.dot). When the merge action occurs the new Word doc
opens instantaniously and then minimizes. Is there a way to get the Word doc
to remain the maximized one on the screen?

Regards,

Penny.
 
A

Albert D.Kallal

I don't know what you code looks like, but right after the merge execute,
you can put

wordApp.Activate
wordApp.WindowState = 0 'wdWindowStateRestore

You may not need the windowstate..but it does seem to help.

By the way, I have a read to go word merge that actually manages templates,
and also fixes security and many re-plot bugs. You can find this word merge
sample here:

http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
 

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