Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to give a user an option to choose where to save the outpur file

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
0
0
CA
Hi

I was wondering if anyone knows how implement the following:

I send the table to the excel spreadsheet file. The location of the excel file is hardcoded. However it is sort of limiting for the user in case she/he wants to save the file in their own directory. So I want to give that option to the users so they can choose the directory they want

Please let me know if there is a way to do that

Thanks
 
If you're using an Access Module to perform the export, could you use the InputBox command to get the file path the user wants to save the file to - and then use that file path in your export command? I can give you a code example, if this is how you would like to do it.
 
Look up the OutputTo method in help. If you leave the fourth argument blank, it'll prompt the user for a filename (and path).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top