Hi, I would like to have my Access database to be able to start a new Word document base on a Word Template. I would like to find out if it is possible for me to do that. Thanks.
This code will open Word from Access97. I have got to go home now, and can't remember the method of creating a new document. If no one else has come up with a solution by tomorrow I'll do some research and post more code.
Function StartWord()
Dim WDApp As Object
On Error Resume Next 'ignore error if Wordnot running
Set WDApp = GetObject("word.Application" 'Check for Word
If Err <> 0 Then
Set WDApp = CreateObject("Word.Application" 'Open Word
End If
On Error GoTo 0 'reset error handling
WDApp.Visible = True 'Make Word Visible
End Function
Well, I had the same problem. I wanted to open a specific .ktc file. A ktc file is a file within the application keaterm. It is possible to start Keaterm but not the specific ktc file.
So to put it in your case.
you create a command file. A command file is a sequence of dos commands you run, as you were typing them.
I am at my home PC, so I can't provide you an example.
(watch word-wrapping). download and install the Auto2000.exe file. It is a help file that provides you with information about automation and provides excellent examples. John Ruff - The Eternal Optimist
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.