Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / April 2008

Tip: Looking for answers? Try searching our database.

Looking for query suggestions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bonnie - 02 Apr 2008 16:21 GMT
I have two tables - master and export.  I would like to only show the records
in export that are not in master.  I want to do something like:

Show records where field1, field2 and field3 aren't the same in export as in
master.

Basically I am matching again three criteria.

I was trying to use the Unmatched wizard but it only uses 1 field.

Thanks,

Bonnie
John W. Vinson - 02 Apr 2008 18:31 GMT
>I have two tables - master and export.  I would like to only show the records
>in export that are not in master.  I want to do something like:
[quoted text clipped - 9 lines]
>
>Bonnie

You can apply the same logic as the unmatched query wizard using a
build-your-own query.

Create a Query joining export to master by all three fields.
Select EACH of the three join lines and change it to a left outer join - "show
all records in Export and matching records in Master".
Put a criterion on any one of the three fields in Master of

IS NULL

I'm assuming that all three fields have values in all three tables - if you're
trying to treat records with NULLS in both tables as a match it gets trickier.
Signature


            John W. Vinson [MVP]

Bonnie - 02 Apr 2008 19:25 GMT
That's the ticket.

Thanks John, your a great help.

B

> >I have two tables - master and export.  I would like to only show the records
> >in export that are not in master.  I want to do something like:
[quoted text clipped - 22 lines]
> I'm assuming that all three fields have values in all three tables - if you're
> trying to treat records with NULLS in both tables as a match it gets trickier.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.