Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-30-2002, 08:07 AM   #1
Member (7 bit)
 
Join Date: May 2001
Location: NY
Posts: 75
Send a message via AIM to shlingman
Comparing tables in Access

Hello, I need help!

i have two tables with the same information from two different databases - one is entered perfectly and the other has some errors (misspelling, wrong numbers, etc.). i need to locate the information in the incorrect data in the second table by comparing it to the first table. i cannot get the data that i need, and i don't know how to. i have been playing around all day.

is there an easy way to do this in MS access 2000?? I know there has to be a way...
shlingman is offline   Reply With Quote
Old 07-30-2002, 08:32 AM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
I am assuming that each table has some sort of primary key defined that you can use to join the two together.

Create a new query with the two tables (tblRight and tblWrong). Join the two tables on the primary key. Then, put the field that you want to check in the query (say Name from tblWrong). In the Criteria line, set the criteria to "Not Like tblRight.Name". That way, it will only display the names in tblWrong that are different from the corresponding names in tblRight. You will probably also want to put the primary key in there in order to determine exactly which records are incorrect.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:58 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2