473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Unmatched query multiple criteria

I am attempting to compare 2 tables in my DB and find unmatched criteria.

There are 2 different fields in each database that need to be compared.

Tbl_AppUsers

Role Settings
INQ INQS
INQ INQSO
BASIC BALQU
BASIC ENTRY

Tbl_RoleSettings

Role Settings
INQ INQS
INQ INQSO
BASIC BALQU
BASIC ENTRY

I would like to perform a query that the fields that basically says If TBL_APPUsers.Role + TBLAPPUsers.Settings <> TBL_RoleSettings.Role + TBL_.Settings show in the results in the query.

I attempted to do this in the unmatched query wizard but you are only able to compare 1 field.

Thanks for the help.
Feb 15 '08 #1
2 2457
ck9663
2,878 Expert 2GB
I am attempting to compare 2 tables in my DB and find unmatched criteria.

There are 2 different fields in each database that need to be compared.

Tbl_AppUsers

Role Settings
INQ INQS
INQ INQSO
BASIC BALQU
BASIC ENTRY

Tbl_RoleSettings

Role Settings
INQ INQS
INQ INQSO
BASIC BALQU
BASIC ENTRY

I would like to perform a query that the fields that basically says If TBL_APPUsers.Role + TBLAPPUsers.Settings <> TBL_RoleSettings.Role + TBL_.Settings show in the results in the query.

I attempted to do this in the unmatched query wizard but you are only able to compare 1 field.

Thanks for the help.
Try this:

Expand|Select|Wrap|Line Numbers
  1. select * from Tbl_AppUsers where TBL_APPUsers.Role + TBLAPPUsers.Settings  not in (select TBL_RoleSettings.Role + TBL_.Settings from Tbl_RoleSettings)
  2.  
-- CK
Feb 15 '08 #2
Try this:

Expand|Select|Wrap|Line Numbers
  1. select * from Tbl_AppUsers where TBL_APPUsers.Role + TBLAPPUsers.Settings  not in (select TBL_RoleSettings.Role + TBL_.Settings from Tbl_RoleSettings)
  2.  
-- CK
I receive the Enter Parameter value for the TBLRoleSettings table
Feb 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Colleyville Alan | last post by:
I want to extract some records that are common to three tables, but not contained in the fourth. Following what I have see in the archives and also trying the unmatched records query wizard, if I...
0
by: Ellen Ricca | last post by:
I have an Access db with several ODBC linked ORACLE tables. These tables have multiple-field PK's. The tables work just fine in many diff types of queries including unmatched queries that are...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
4
by: carl.barrett | last post by:
Hi, I have a list box that displays 2 columns. Behind it sits a query with five columns. These are Column1 (DOB), column2 (a concatenated string of Surname Forname, Title), Column3 (Surname),...
0
by: Greg Strong | last post by:
Hello All, In the past I've used a combo box with the 'row source' being an Access SQL union query to select "All" or 1 for only 1 criteria in a query. An example is as follows: SELECT 0 As...
2
by: ilikebirds | last post by:
In 1 Database(ttt) I currently have a Union Query that collects data from 4 databases (a,b,c,d) and then a MakeTable query that combines all of those into a table. ( Union A,B,C,D to make table in...
1
by: AccessHunter | last post by:
Please Help.... I have a query with 2 tables, LegalFile and Cases. LegalFile has the field CaseID(Number Field) and Cases has CaseNbr(Text Field). I am trying to find entries that are in...
6
by: jmarcrum | last post by:
Hi! I have created a Union Query in ACCESS 2003, that combines 130 records from one query (Extra Foreman Radios) and 250 records from another query (Forman Main Radios). I have created a...
1
by: Tlou5831 | last post by:
I am attempting to compare 2 tables in my DB and find unmatched criteria. There are 2 different fields in each database that need to be compared. Tbl_AppUsers Role Settings INQ ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.