Print Page | Close Window

ImportToTempDatabase.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=338
Printed Date: 24 Apr 2024 at 5:14am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: ImportToTempDatabase.mdb (intermediate)
Posted By: Roger Carlson
Subject: ImportToTempDatabase.mdb (intermediate)
Date Posted: 01 Aug 2008 at 3:03am

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 

ImportToTempDatabase.mdb

This illustrates how to programmatically create a database to hold a temp table for updating. You would want to do this if database bloat is a problem.

Opening "Form1" creates the remote database, copies an empty table to the remote database and re-links the remote table back to the database. The Import button imports the text file into the remote database table. Then there are two Update subroutines. The first uses the Find method and the second uses Seek. They both do the same thing, but there is a performance difference. Closing the database deletes the linked table and erases the remote database from the hard drive.
 
Download
Access 97 (240 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/ImportToTempDatabase97.zip - uploads/5/ImportToTempDatabase97.zip
Access 2000 DAO (229 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/ImportToTempDatabase2k.zip - uploads/5/ImportToTempDatabase2k.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