Solved

MS Access 2010 How can I open a Word document from within Access?

Posted on 2012-04-09
7
680 Views
Last Modified: 2012-04-09
I'd like to be able to hyperlink to a Word document by clicking a button on an Access 2010 form.   I can't seem to find a macro to do this, and I'm not familiar enough with VBA (yet) to do it. (I just starting to learn VBA.)  

I know I can create a hyperlink from a field within a table, but I'd like to hyperlink to the document directly from the form.

Can you help me with this?   Thanks.  WallyTee
0
Comment
Question by:WallyTee
7 Comments
 
LVL 12

Assisted Solution

by:xmlmagician
xmlmagician earned 100 total points
ID: 37824321
0
 
LVL 39

Assisted Solution

by:als315
als315 earned 100 total points
ID: 37824326
Test this sample:
DBHyperlink.accdb
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 100 total points
ID: 37824363
In the click event of a button, use:

application.followhyperlink "C:\foldername\filename.doc"
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 21

Assisted Solution

by:Boyd (HiTechCoach) Trimmell, Microsoft Access MVP
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 100 total points
ID: 37824470
See:    Hyperlinks: warnings, special characters, errors

I prefer to use the ShellExec API to avoid the issue with Hyperlinks.  Here is an example I created: Document Links
0
 

Author Comment

by:WallyTee
ID: 37824663
Thanks to all.  I'll give your suggestions a shot and see how far I can get.   WallyTee
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37824981
<No Points wanted>

<I'd like to be able to hyperlink to a Word document by clicking a button on an Access 2010 form.   I can't seem to find a macro to do this, and I'm not familiar enough with VBA (yet) to do it. (I just starting to learn VBA.)  >
A Macro cannot "create" a hyperlink, nor can it be easily made to Follow one.
0
 

Author Closing Comment

by:WallyTee
ID: 37825118
Thanks again to all.   You can close this one out.   WallyTee
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now