Connecting Tech Pros Worldwide Help | Site Map

Opening MS Word File from Access Form

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:23 PM
Tony Schoeffler
Guest
 
Posts: n/a
Default Opening MS Word File from Access Form

I have an Access application where it would desirable to open a word
file directly from an Access Form. I have been able to open the Word
application, but I have not been able to have it open with the desired
file. Any help or sample code would be appreciated.


  #2  
Old November 12th, 2005, 09:23 PM
Dean Covey
Guest
 
Posts: n/a
Default Re: Opening MS Word File from Access Form

In your table, create a field for hyperlinks. Populate that field
accordingly and make it available on the approriate form.

--
Dean Covey
www.coveyaccounting.com

MS-Office Certified:
http://www.microsoft.com/learning/mc...st/default.asp

"Tony Schoeffler" <Hugh.A.Schoeffler@lerc.nasa.gov> wrote in message
news:c5p61s$pje$1@sulawesi-fi.lerc.nasa.gov...[color=blue]
> I have an Access application where it would desirable to open a word
> file directly from an Access Form. I have been able to open the Word
> application, but I have not been able to have it open with the desired
> file. Any help or sample code would be appreciated.
>[/color]


  #3  
Old November 12th, 2005, 09:26 PM
Mike Preston
Guest
 
Posts: n/a
Default Re: Opening MS Word File from Access Form

On Fri, 16 Apr 2004 20:44:28 GMT, Hugh.A.Schoeffler@lerc.nasa.gov
(Tony Schoeffler) wrote:
[color=blue]
>I have an Access application where it would desirable to open a word
>file directly from an Access Form. I have been able to open the Word
>application, but I have not been able to have it open with the desired
>file. Any help or sample code would be appreciated.[/color]

Post the code you have used to open Word. Usually, all you need to do
is add to the documents collection of the Word object. For example,
if you used:

Dim objWord as object
Set objWord = CreateObject("Word.Application")
objWord.visible = True
objWord.documents.open "c:\mydirectory\myworddocument.doc"

mike

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.