ACC1x: How to Mark Records with Unmatched or Invalid ValuesID: Q103400
|
A table imported from an external source may contain invalid or erroneous
data. This article demonstrates how to use an update query to compare an
imported table to a reference table and mark the imported records that do
not match the reference table values.
In Microsoft Access version 2.0, this functionality is provided by the Find
Unmatched Query Wizard. For more information, search for "Find Unmatched
Query Wizard" using the Help menu in Microsoft Access 2.0.
For the following example, assume that you have imported a customer
order table and have found that the records in the imported table have
valid but misspelled customer names. The example below demonstrates
how to compare names in the imported table with a table of valid names
and mark the imported records that do not match the reference table.
Reference Table Imported Table
--------------------------------
ACE ACE
BAT ACE
CAD ACA
CAT BAT
BAR
CAD
CAD
CAT
Query: Mark Unmatched
----------------------------------------------
Field name: Customer Name
Table: Imported Table
Criteria: [Reference Table].[Customer Name]
Field name: Matched
Table: Imported Table
Update to: "Yes"
Microsoft Access "User's Guide," version 1.0, Chapter 7, "Designing Action Queries and Parameter Queries, page 176
Additional query words: unmatched misspell spell
Keywords : kbusage QryMktbl
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 26, 1999