Open Word Doc with same name as a Access Form Field

S

Stacey

I want to locate VB code that I can attach to a command
button in a form. When clicked, this code will open a MS
Word document in another folder that has the same
filename as the contents as one of the form fields.
1. Can this be done?
2. Where can I find such code?

Thanks in advance,
Stacey
 
J

John Nurick

The simplest way is with something like

Application.FollowHyperlink "D:\Folder\Folder\" & _
Me.NameOfField.Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top