NauticalGent
Ignore List Poster Boy
- Local time
- Today, 14:18
- Joined
- Apr 27, 2015
- Messages
- 7,048
This morning I attempted to place a command button on one of my forms that would allow users to:
1. Make a directory on a shared drive, the path would be determined by values of the forms fields
2. Store that path in a hyper-link field so that the user could click it and be whisked away to that directory and view its contents.
Sounded easy enough and a quick Google search took me to several sites that spoke to the MkDir Function. Easy day...
Until I actually clicked the button...I kept getting an error 76 - Path does not found. Well, no s**t Sherlock, what do you think in am trying to do here?!?
Could not figure out what was wrong and was getting ready to scrap the whole idea, which was not good because I had already bragged to the users that they would be able to have it...
Then I remembered seeing something about an "overload" procedure on PBaldy's web site. It was while I was reading the notes that I came to understand that MkDir can only make one directory at a time which is not ideal especially if you are storing files on a shared drive.
This Function allows you to bypass that and more. Here is the link if anyone is interested.
http://www.baldyweb.com/ChrisOSamples.htm
The code is by Chris-O, I would thank him directly but I have heard a rumor he is no longer with us?
At any rate, it worked like a champ. If you are needing something similar, here is your answer.
1. Make a directory on a shared drive, the path would be determined by values of the forms fields
2. Store that path in a hyper-link field so that the user could click it and be whisked away to that directory and view its contents.
Sounded easy enough and a quick Google search took me to several sites that spoke to the MkDir Function. Easy day...
Until I actually clicked the button...I kept getting an error 76 - Path does not found. Well, no s**t Sherlock, what do you think in am trying to do here?!?
Could not figure out what was wrong and was getting ready to scrap the whole idea, which was not good because I had already bragged to the users that they would be able to have it...
Then I remembered seeing something about an "overload" procedure on PBaldy's web site. It was while I was reading the notes that I came to understand that MkDir can only make one directory at a time which is not ideal especially if you are storing files on a shared drive.
This Function allows you to bypass that and more. Here is the link if anyone is interested.
http://www.baldyweb.com/ChrisOSamples.htm
The code is by Chris-O, I would thank him directly but I have heard a rumor he is no longer with us?
At any rate, it worked like a champ. If you are needing something similar, here is your answer.