A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

unmatched query



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 04:23 AM
zaps
external usenet poster
 
Posts: n/a
Default unmatched query

Hi there,

I have 2 tables of customers names. How do I make a query to show the
customers that are found in one table but not the other? Unfortunately, the
computer I used doesn't have the query wizard installed...as I noticed there
is a find unmatched query wizard, but I can't access it.

Thanks,
Michelle



  #2  
Old June 7th, 2004, 04:40 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default unmatched query

Join the two by the name and elect to show both sides.
The trouble is that if it a full name then "John Smith" will not match
"John smith" or Smith, John.
(There re two spaces in the first name.)
"zaps" wrote in message
able.rogers.com...
Hi there,

I have 2 tables of customers names. How do I make a query to show the
customers that are found in one table but not the other? Unfortunately,

the
computer I used doesn't have the query wizard installed...as I noticed

there
is a find unmatched query wizard, but I can't access it.

Thanks,
Michelle





  #3  
Old June 7th, 2004, 04:45 AM
Arvin Meyer
external usenet poster
 
Posts: n/a
Default unmatched query

Try something like this:

Select * From Table1
Left Join Table2 on Table1.ID = Table2.ID
Where Table2.ID Is Null

substituting your table and field names.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access


"zaps" wrote in message
able.rogers.com...
Hi there,

I have 2 tables of customers names. How do I make a query to show the
customers that are found in one table but not the other? Unfortunately,

the
computer I used doesn't have the query wizard installed...as I noticed

there
is a find unmatched query wizard, but I can't access it.

Thanks,
Michelle





  #4  
Old June 7th, 2004, 04:57 AM
TracyG
external usenet poster
 
Posts: n/a
Default unmatched query

join the two tables - , but change the join type from from type 1 to type 2
(or type 3 depending upon the table you choose to add to the query first)...

then select the key from both tables, and on the table where the data may be
missing, type a criteria of is null. This will show you the values from the
first table where the values from the second are not there/unmatched.

that help?


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.