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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Value missing from either table



 
 
Thread Tools Display Modes
  #1  
Old August 29th, 2008, 07:57 PM posted to microsoft.public.access.tablesdbdesign
grdngurl
external usenet poster
 
Posts: 1
Default Value missing from either table

I have a relationship set up to match part numbers from two inventory system
tables. I noticed when a part number is missing from one table it does not
appear in the query results. Is there any way around this omission of data?
I'd like to use the query results to review the value of the data between
systems and also to find cases where a number is missing from one system or
the other.
  #2  
Old August 29th, 2008, 09:03 PM posted to microsoft.public.access.tablesdbdesign
Golfinray
external usenet poster
 
Posts: 1,597
Default Value missing from either table

Go to the unmatched query wizard under new queries. It will show you the ones
that don't have a match.

"grdngurl" wrote:

I have a relationship set up to match part numbers from two inventory system
tables. I noticed when a part number is missing from one table it does not
appear in the query results. Is there any way around this omission of data?
I'd like to use the query results to review the value of the data between
systems and also to find cases where a number is missing from one system or
the other.

  #3  
Old September 2nd, 2008, 05:35 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Value missing from either table

Normally you use an unmatch query but in your case you may have an unmatch
both ways.
So create a union query named Part_List --
SELECT [Part_Number]
FROM TableA
UNION SELECT [Part_Number]
FROM TableB

Then run the unmatched --
SELECT [Part_List].[Part_Number], IIF([TableA].[Part_Number] Is Null, "X",)
AS MissingTableA, IIF([TableB].[Part_Number] Is Null, "X",) AS MissingTableB
FROM ([Part_List] LEFT JOIN TableA on [Part_List].[Part_Number] =
[TableA].[Part_Number]) LEFT JOIN ([Part_List] LEFT JOIN TableB on
[Part_List].[Part_Number] = [TableB].[Part_Number])
WHERE [TableA].[Part_Number] Is Null OR [TableB].[Part_Number] Is Null;

--
KARL DEWEY
Build a little - Test a little


"grdngurl" wrote:

I have a relationship set up to match part numbers from two inventory system
tables. I noticed when a part number is missing from one table it does not
appear in the query results. Is there any way around this omission of data?
I'd like to use the query results to review the value of the data between
systems and also to find cases where a number is missing from one system or
the other.

 




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 01:13 PM.


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