creating directory

P

Phil

I am using Access 97. I have a form to capture a customer
name, location, project name and job name. Is it possible
to write a macro to create a directory based on the form
information (customername\location\project name\job name)?

Please help
 
D

Douglas J. Steele

Sure. The MkDir statement will let you create directories.

What you need to watch out for, though, is the fact that it cannot create
nested directories. In other words, it cannot create
C:\Folder1\Folder2\Folder3 if Folder1 or Folder2 don't exist. To do that,
you'd need to use:

MkDir C:\Folder1
MkDir C:\Folder1\Folder2
MkDir C:\Folder1\Folder2\Folder3
 

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