Solved

Multiple criteria for one field in access query

Posted on 2014-11-13
5
253 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 119

Expert Comment

by:Rey Obrero
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 34

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 119

Expert Comment

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

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now