Solved

How to open Word templates from Access

Posted on 2008-10-22
3
763 Views
Last Modified: 2013-11-27
I want Access to open a document as a blank using a template I define. Right now I have this code and it works and it opens the correct document, but if I work it as a *.dot ( Word template), then it opens the template for editing, not a blank document.

How can I open the template as a blank, like when you do Word manually?

>>>
    Dim word As word.Application
   
    Set word = CreateObject("Word.Application")
    word.Visible = True
    word.Documents.Open ("\\ctx\Joblog\Word Docs\STATECOMPLIANCE blank.doc")
0
Comment
Question by:onepiolin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Jupiler78 earned 500 total points
ID: 22779487
Hello onepiolin,

you should use:
word.documents.add()
the first param then is: The name of the template to be used for the new document. If this argument is omitted, the Normal template is used
the second: True to open the document as a template. The default value is False

Regards,

Jupiler78
0
 
LVL 16

Expert Comment

by:Sheils
ID: 22780021
The is a good easy mail merge that you can incorporate into your database.

http://www.members.shaw.ca/AlbertKallal/wordmerge/index.html

0
 
LVL 8

Expert Comment

by:Jupiler78
ID: 22802132
Glad I could help.
Thanks for the points & grade.
Good luck.

Jupiler78
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question