Hi
I'm hoping to be able to open, edit and print a Word document from an Access form. I believe this is possible but can find no instructions for doing it. I'm running Access 2003.
Any help would be much appreciated.
Regards
John
Did you check the FAQ's? Did you do a search on "word document"? Did you google? Did you look in an Access book? I found these:
faq702-2379
thread702-1502670
Dim strfilename As String
Dim wrd As Object
Dim wrd1 As Object
strfilename = "path to file"
Set wrd1 = CreateObject("word.application.9")
Set wrd = GetObject(, "Word.Application.9")
wrd.Visible = True
wrd.Documents.Open strfilename, , True
wrd.Activate
or you can open an existing notepad file with this;
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.