SaveFileToSpecificDirectory.mdb (intermediate) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 27 Jul 2008 at 10:33pm |
Please consider donating $1 per sample downloaded, find out why here.
SaveFileToSpecificDirectory.mdb This sample shows how to use the Windows API to bring up the OpenSaveFile dialog box and save a file to a directory of your choosing. In this case, it saves the file to whatever directory the application sits in. It doesn't have to be that. It could be the directory where the linked tables are stored. In that case, you would want to use the FindSource function instead of the GetPath function. Or you can hard code a directory into the GetPath function and store it anywhere you want. If you want a further explanation of these functions, see my sample "GetPathFilename.mdb"
Note: this app does NOT illustrate how to allow your user to save wherever he wants. YOU are determining where the file will be stored. The user only selects the file that will be copied. For a further discussion of how the API function works, see: http://www.mvps.org/access/api/api0001.htm Download
Access 97 (33 KB): uploads/5/SaveFileToSpecificDirectory97.zip Access 2000 DAO (47 KB): uploads/5/SaveFileToSpecificDirectory2k.zip |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |