Solved

Multiple criteria for one field in access query

Posted on 2014-11-13
5
260 Views
Last Modified: 2014-11-19
I need to be able to compare two tables but need to input the criteria based on one table and then have it show me the mismatched records between the two.  Anyone have any ideas??
0
Comment
Question by:lrollins
  • 2
  • 2
5 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40440881
use the query wizard, select Find Unmatched query wizard

as for  the multiple criteria, you use

field
table

criteria  in(1,2,3)   , for number type fields

               in("1","2","3")   , for text type fields
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40440894
There is an unmatched query wizard that might give you a start.  It is not clear to me what you are asking for.  There wizard will create a query between two tables and show you the rows from tblA that don't have a match in tblB.  Is that what you want or are you looking for a query that joins tblA to tblB on some common field and then returns only rows where fldC in tblA is different from fldC in tblB?
0
 
LVL 1

Author Comment

by:lrollins
ID: 40440913
Yes but it has to be based a certain criteria from one of the tables and this criteria would be put in by the user.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40440919
ok, upload a sample db and explain in details how to proceed with the criteria
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 40441455
Start by getting the basic query built.  There are a number of ways to provide criteria.  you'll need to tell us how you want to do it and how variable it is.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question