Path definition

A

acores

Hi.
I need to ask the user in a customised menu something like: 'Settings >
Documents folder location', where the user would define a [path] to a folder.
Then I would use that path in the following code:

Private Sub ID_Ordem_DblClick(Cancel As Integer)
Dim nome As String
nome = Forms!frm_Obras!Doc_nome
Application.FollowHyperlink path & nome & ".doc"
End Sub

How can I do this?
Thank you in advance.
 
A

acores

Thank you for your answer.
But, it is possible to chose the path only once and predefine it in order to
avoid the user to select the folder every time he wants to open a file?
Thank you again.


"(e-mail address removed)" escreveu:
 

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