Solved

Access Query

Posted on 2012-03-29
2
275 Views
Last Modified: 2012-03-29
Here is the scenario. I have a local table named tblSVF. the PK is OrderNumber. I have a pass through query and its PK is also OrderNumber. The records in the pass through will always have a corresponding record in the local table. So far so good. here is where it gets tricky. there are times that there will be records in the local table that are not in the pass through. I need to see ALL of the records from both locations only once. I want to accomplish this in one query. this seems like an easy request but for some reason I am having a brain fart and it is easier to ask you pros than to spend a considerable amount of time and do something else until I get it resolved. Thank you everybody. :-)
0
Comment
Question by:JArndt42
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 37784679
Select tblSVF.*, qryPassthru.*
from tblSVF left join qryPassthru
On tblSVF.OrderNumber = qryPassthru.Ordernumber
0
 
LVL 1

Author Closing Comment

by:JArndt42
ID: 37784698
duh! Thanks for releasing the pressure from my brain. :-) a very simple left join from the local table to the pass through shows them all. thanks.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reset Active Directory Password via MS Access 9 52
SQL Query 34 79
Run Time Error 3071 26 34
Simple Excel re-arrange data.  (I can work in access too). 8 46
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 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

9 Experts available now in Live!

Get 1:1 Help Now