tkal2k@gmail.com wrote:[color=blue]
> i want to create a directory in a certain subfolder, but here's the
> catch
>
> each entry in my database is assigned an autonumber
>
> i want to be able to create a new directory when i press a button on
> each entry form, and have the directory be named from information in
> each entry.
>
> (" e.g. c:\3000\'autonumber' 'name' ")[/color]
One method is:
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CreateFolder "C:\3000\" & FileID & FileDesc
fs.close
[color=blue]
> also if anyone knows how to take a standard word or excel file, like
> say for a fax cover sheet, and automatically copy it into a directory.[/color]
FileID = 3000
FileDesc = "Name"
FileCopy "c:\docs\mydoc.doc", "c:\3000\" & FileID & FileDesc & "\mydoc.doc"
or
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile "c:\docs\mydoc.doc", "c:\3000\" & FileID & FileDesc &
"\mydoc.doc"
fs.close
--
regards,
Br@dley