Solved

Access Query

Posted on 2012-03-29
2
274 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
Comment Utility
Select tblSVF.*, qryPassthru.*
from tblSVF left join qryPassthru
On tblSVF.OrderNumber = qryPassthru.Ordernumber
0
 
LVL 1

Author Closing Comment

by:JArndt42
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

17 Experts available now in Live!

Get 1:1 Help Now