Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access Query

Posted on 2012-03-29
2
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

610 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