Print Page | Close Window

CompareTwoTables.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=376
Printed Date: 28 Mar 2024 at 9:16am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: CompareTwoTables.mdb (intermediate)
Posted By: Roger Carlson
Subject: CompareTwoTables.mdb (intermediate)
Date Posted: 01 Aug 2008 at 7:11am

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

CompareTwoTables.mdb

This sample shows how you can programmatically compare two tables and write out the differences to a third table.

It assumes that one table (the Base) is considered to be the accurate table. The table that is being compared to the base table is called the Varying table. The results, listed in the TableDiscrepancies table are alway listed in terms of the base table.

There are two different versions, CompareTables in Module1 and CompareTables2 in Module2. The main difference is that CompareTables2 is more robust, giving you more information about what was changed and putting the information into separate fields rather than just a string.

To run this application, go to the appropriate Module, place the cursor in the "testCompare" sub routine and put the Run button.
 
Download
Access 97 (36 KB):
http://rogersaccesslibrary.com/download3.asp?SampleName=CompareTwoTables.mdb - CompareTwoTables97.zip
Access 2000 - 2002010 (mdb): http://www.rogersaccesslibrary.com/forum/uploads/5/CompareTwoTables2k.zip - CompareTwoTables2k.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