Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a directory pending on a field in a form

Status
Not open for further replies.

snuffi01

Technical User
May 24, 2003
26
SE
I have read many threads regarding somwhere near my issue, but i dont get it to work and dont know if i overwork it.

I have an form where a field containes CompanyName, i also have an button witch should open a directory where all (for example offerts is of the specific customer).
The path is Y:\Sync mot server\Kunder\"CompanyName"\Förbindningstabell/

I want the button to open the directory Y:\Sync mot server\Kunder\Ericsson\Förbindningstabell/ when i am in the form of my customer ericsson.

Please help me!
 
Try this:

The path is Y:\Sync mot server\Kunder\" & me!CompanyName & "\Förbindningstabell/

Rgds
Herman
 
Thanks for the ansver!
But it doesn't work.
It works untill i put in the \" & me!CompanyName & "Then it doesn't work anymore!
 
Try hanging a CH(34) & on the front of the path and a & ch(34) on the end. To be sure make the path a string and look at the string using msgbox. It will probably tell you what you are doing wrong.

rollie@bwsys.net
 
The: "Y:\Sync mot server\Kunder\" & CompanyName & "\Förbindningstabell\"

Works fine here, however note that I have changed your "\Förbindningstabell/" to "\Förbindningstabell\"
Rgds
Herman

 
Thanks now i got it to work.
When i tried with an hyperlink i didn't get it to work, but when i tried with an button and Application.FollowHyperlink then it worked just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top