A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Path definition



 
 
Thread Tools Display Modes
  #1  
Old September 26th, 2006, 11:35 PM posted to microsoft.public.access.forms
acores
external usenet poster
 
Posts: 74
Default Path definition

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.
  #2  
Old September 27th, 2006, 01:43 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 264
Default Path definition

If I were doing this, I'd use the BrowseFolder API at accessweb.
www.mvps.org/access

It's in the APIs section.

  #3  
Old September 29th, 2006, 06:42 PM posted to microsoft.public.access.forms
acores
external usenet poster
 
Posts: 74
Default Path definition

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.


" escreveu:

If I were doing this, I'd use the BrowseFolder API at accessweb.
www.mvps.org/access

It's in the APIs section.


  #4  
Old September 29th, 2006, 07:15 PM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Path definition

Sure. Save it in a global variable once it's been selected.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"acores" wrote in message
...
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.


" escreveu:

If I were doing this, I'd use the BrowseFolder API at accessweb.
www.mvps.org/access

It's in the APIs section.




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.