Common Dialog Question

fieldling

Registered User.
Local time
Today, 15:11
Joined
Jul 6, 2007
Messages
36
I'm using the MkDir function on a command button which creates a new folder in the C: drive. Example:
Code:
MkDir "C:\Export Folder"

I'd like to be able to choose the file name and destination this is saved to so need to call the SaveAs dialog box if possible. Any suggestions how to do this?

Thanks
 
To create/delete folder and files and do a bit more with files look for Scripting.FileSystemObject.

I used it to move backup files, create new files and to check if files are already existing.

Although, if you use outputto (docmd.outputto) and don't provide where to output object (table, query or report) then it will prompt you with with 'SaveAs' dialog with default name being the name of the object you're outputing.

Hope this helps.
 
Have now sorted it. Thanks
 

Users who are viewing this thread

Back
Top Bottom