UpdateImportSeekFind.mdb (intermediate)

Please consider donating $1 per sample downloaded, find out why here
Download
UpdateImportSeekFind.zip
Access 97 (224 KB)

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.

 

Feedback

 

Need Winzip?

Return to Main Page