Print Page | Close Window

SaveFileToSpecificDirectory.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=277
Printed Date: 28 Mar 2024 at 8:06am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: SaveFileToSpecificDirectory.mdb (intermediate)
Posted By: Roger Carlson
Subject: SaveFileToSpecificDirectory.mdb (intermediate)
Date Posted: 27 Jul 2008 at 10:33pm
 
Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - 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 - http://www.mvps.org/access/api/api0001.htm

Download
Access 97 (33 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/SaveFileToSpecificDirectory97.zip - uploads/5/SaveFileToSpecificDirectory97.zip
Access 2000 DAO (47 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/SaveFileToSpecificDirectory2k.zip - uploads/5/SaveFileToSpecificDirectory2k.zip
 


-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net