Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - SaveFileToSpecificDirectory.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

>
Want a good read? Try The Summer of His Life (available on Amazon!)

SaveFileToSpecificDirectory.mdb (intermediate)

 Post Reply Post Reply
Author
Message
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: SaveFileToSpecificDirectory.mdb (intermediate)
    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

 
Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links
>
Want a good read? Try The Summer of His Life (available on Amazon!)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.