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


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

UpdateImportSeekFind.mdb (intermediate)

 Post Reply Post Reply
Author
Message
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: UpdateImportSeekFind.mdb (intermediate)
    Posted: 15 Jul 2008 at 11:34pm

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

UpdateImportSeekFind.mdb

This sample illustrates how to programmatically update a table from a temp table. The scenerio is that there is a text file download which has already been imported into a temp table "ShoeImport". 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.

There are four variations in the indicated modules: SEEK method with no status, SEEK with status, FIND with status, and Direct from a text file. Go the module to see the code.

Download
Access 97 (224 KB):
uploads/5/UpdateImportSeekFind97.zip
Access 2000 DAO (238 KB): uploads/5/UpdateImportSeekFind2k.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