Connecting Tech Pros Worldwide Help | Site Map

opening ms word

  #1  
Old November 12th, 2005, 07:09 PM
stoker
Guest
 
Posts: 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


  #2  
Old November 12th, 2005, 07:10 PM
Pieter Linden
Guest
 
Posts: n/a

re: opening ms word


"stoker" <stoker@w-s.pl> wrote in message news:<bu70c2$l7v$1@inews.gazeta.pl>...[color=blue]
> 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[/color]

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
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening MS-Word documents in MS WORKS 8 =?Utf-8?B?Um9iYmllMjE=?= answers 1 February 27th, 2007 11:55 PM
Opening MS Word from a VB.NET ASP Page Access Denied Yohancef Chin answers 3 November 18th, 2005 01:16 AM
Opening MS Word from a VB.NET ASP application Yohancef Chin answers 4 November 18th, 2005 12:58 AM
Opening MS Word files via Python Fazer answers 5 July 18th, 2005 11:29 AM