By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,961 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,961 IT Pros & Developers. It's quick & easy.

opening ms word

P: n/a
can anybody, please, tell me how to open prepared earlier ms word document
or template from ms access vba code?
all my efforts failed. ive managed to open empty document, but when i want
to open my own one then opens a copy of database im currently running. its
interesting when u c filename "whatever.doc" and access opens...
i will be gratefull for any help.

*-*-*
best regards
stoker
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"stoker" <st****@w-s.pl> wrote in message news:<bu**********@inews.gazeta.pl>...
can anybody, please, tell me how to open prepared earlier ms word document
or template from ms access vba code?
all my efforts failed. ive managed to open empty document, but when i want
to open my own one then opens a copy of database im currently running. its
interesting when u c filename "whatever.doc" and access opens...
i will be gratefull for any help.

*-*-*
best regards
stoker


How to open a template through code:
http://www.mvps.org/access/modules/mdl0043.htm

How to open a word doc through code:

Something like....
'Horrible code coming...
Public Function OpenWordDoc(ByVal strDoc As String)
Dim appWord As Word.Application
Set appWord = New Word.Application

appWord.Documents.Open (strDoc)
appWord.Activate

End Function
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.