472,119 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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.

Nov 12 '05 #1
2 2029
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" <Hu***************@lerc.nasa.gov> wrote in message
news:c5**********@sulawesi-fi.lerc.nasa.gov...
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.

Nov 12 '05 #2
On Fri, 16 Apr 2004 20:44:28 GMT, Hu***************@lerc.nasa.gov
(Tony Schoeffler) wrote:
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.


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

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tony Schoeffler | last post: by
11 posts views Thread by Danny J. Lesandrini | last post: by
4 posts views Thread by Thomas Scheiderich | last post: by
16 posts views Thread by Phil Stanton | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.