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

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

UpdateDirect.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: UpdateDirect.mdb (intermediate)
    Posted: 16 Jul 2008 at 10:29pm

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

UpdateDirect.mdb

This sample illustrates how to programmatically update a table directly from a text file. The scenario is that there must be a file called "ShoeImport.txt" in the same drive as the database. You can create this file by clicking the "Export Table to Text File" button. Each record has a code in the field TRNCOD which indicates whether the record should "A" add a new record, "U" update a record, "D" delete a record, or "R" skip the record. Additionally, if there is a "U" and no matching record exists, the record should be Added.

The "Simple Import" runs the import without a status bar. The "Advanced Import" brings up a status bar to show progress.

Download
Access 97 (114 KB):
uploads/5/UpdateDirect97.zip
Access 2000 DAO (117 KB): uploads/5/UpdateDirect2k.zip
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.