create directory from a form

U

Uhl

I use a field called "Ordner" as Hyperlink with data e.g. "C:\Customers".
I also use a field named "Lastname" as Text with data e.g. "Miller".

Now I want to create a directory Miller in C:\custmers

Result: C:\customers\Miller

Thanks for the help
 
J

Jeanette Cunningham

To create a directory, use the Dir function.
Look up vba help for Dir.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
S

Stuart McCall

Uhl said:
I use a field called "Ordner" as Hyperlink with data e.g. "C:\Customers".
I also use a field named "Lastname" as Text with data e.g. "Miller".

Now I want to create a directory Miller in C:\custmers

Result: C:\customers\Miller

Thanks for the help

MkDir "C:\customers\" & Me.Lastname

If you ever want to create an entire directory structure in one go, try
this:

http://www.smccall.demon.co.uk/Strings.htm#CreatePath
 

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