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


Please consider donating $1 per sample downloaded, (find out why here)

ImportToTempDatabase.mdb (intermediate)

 Post Reply Post Reply
Author
Message Reverse Sort Order
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 249
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: ImportToTempDatabase.mdb (intermediate)
    Posted: 01 Aug 2008 at 3:03am

Please consider donating $1 per sample downloaded, 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):
uploads/5/ImportToTempDatabase97.zip
Access 2000 DAO (229 KB): uploads/5/ImportToTempDatabase2k.zip

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down