PC Review


Reply
Thread Tools Rate Thread

directory dialog

 
 
=?Utf-8?B?aG1tbW0/?=
Guest
Posts: n/a
 
      12th Oct 2006
How do I prompt the user to specify a directory when entering data into
forms? I know how the FileDialog works....but I only want to create a
variable storing the directory the user chooses. The file name itself is a
built string from other data the user enters, and the path is not dynamic.
Any suggestions? i.e. the field with the filepath is accessing existing files
in a folder, however if the user moves the files to a different location,
they'd have to go into the code to change the directory all of the files are
stored in.

Thanks
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      12th Oct 2006
See:
Call Windows Browse for Folder Dialog box
at:
http://www.mvps.org/access/api/api0002.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"hmmmm?" <(E-Mail Removed)> wrote in message
news:925AC842-CD9E-4EAF-85F7-(E-Mail Removed)...
> How do I prompt the user to specify a directory when entering data into
> forms? I know how the FileDialog works....but I only want to create a
> variable storing the directory the user chooses. The file name itself is a
> built string from other data the user enters, and the path is not dynamic.
> Any suggestions? i.e. the field with the filepath is accessing existing
> files
> in a folder, however if the user moves the files to a different location,
> they'd have to go into the code to change the directory all of the files
> are
> stored in.
>
> Thanks



 
Reply With Quote
 
=?Utf-8?B?aG1tbW0/?=
Guest
Posts: n/a
 
      12th Oct 2006
Nevermind.....I found some code by Terry Kreft which works fabulously!

http://www.mvps.org/access/api/api0002.htm

cheers

"hmmmm?" wrote:

> How do I prompt the user to specify a directory when entering data into
> forms? I know how the FileDialog works....but I only want to create a
> variable storing the directory the user chooses. The file name itself is a
> built string from other data the user enters, and the path is not dynamic.
> Any suggestions? i.e. the field with the filepath is accessing existing files
> in a folder, however if the user moves the files to a different location,
> they'd have to go into the code to change the directory all of the files are
> stored in.
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?aG1tbW0/?=
Guest
Posts: n/a
 
      12th Oct 2006
Thanks Allen....I managed to find that code myself......

"Allen Browne" wrote:

> See:
> Call Windows Browse for Folder Dialog box
> at:
> http://www.mvps.org/access/api/api0002.htm
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "hmmmm?" <(E-Mail Removed)> wrote in message
> news:925AC842-CD9E-4EAF-85F7-(E-Mail Removed)...
> > How do I prompt the user to specify a directory when entering data into
> > forms? I know how the FileDialog works....but I only want to create a
> > variable storing the directory the user chooses. The file name itself is a
> > built string from other data the user enters, and the path is not dynamic.
> > Any suggestions? i.e. the field with the filepath is accessing existing
> > files
> > in a folder, however if the user moves the files to a different location,
> > they'd have to go into the code to change the directory all of the files
> > are
> > stored in.
> >
> > Thanks

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cancelling directory dialog box Reena Microsoft Excel Programming 1 12th May 2005 07:49 PM
Directory Dialog Todd Lu Microsoft Dot NET 0 16th Aug 2004 01:07 PM
Directory dialog box Pry Ness Microsoft Dot NET Framework Forms 3 11th Oct 2003 11:10 PM
.net directory dialog ~cch~ Microsoft Dot NET Framework Forms 1 9th Sep 2003 05:36 PM
Selecting a directory dialog Ray Price Microsoft Dot NET Framework Forms 1 31st Jul 2003 11:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:12 AM.