Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  


Microsoft Access Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

This forum is for the discussion of Microsoft Access.

Access is my personal specialty. Have questions? Comments? Want to discuss how to do something? Post it here. Also, I get a LOT of questions sent to me in Email from people around the world. I'll post the interesting ones in here. Feel free to comment on them.

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: microsoft access forum
Post New Topic

Read Outer Join by Robert M. L @ 5/25/2013
I m having a problem designing a query that will combine two tables and show all the records from each table. Table 1  Voter ID  has 25,242 records; Table 2  Voted  has 25,049 records. The query contains both tables and the Voter ID in both tables is linked. I have selected the Voter ID from each table to be displayed, when I running the query only 22,726 records are displayed. I m missing 2,516 records. I m assuming that the disparity is because people are always moving in and out of town, and the two tables are not a perfect match, and therefore are not displayed.
My question is how can I force the information from both tables to be displayed?

Thanks in advance
Bob Lilly

Reply from Richard Rost:

Make sure to use an OUTER JOIN in your relationship between the tables in the query. Double-click on the join line and pick one of the other two options.
Show Just This Thread        Post Reply
Read Using and Outer Join on a form by Alex Hedley @ 6/7/2012
You need to tell the form to update the information when you change the value in the combobox

So are you running a .requery or .refresh on the combo after update event?
Show Just This Thread        Post Reply
Read Using and Outer Join on a form by JudyB @ 6/7/2012
I have an Outer Join that works in the query below

SELECT ItemT.itemName, nz(Sum(TransT.qty),0) AS SumOfqty, TransT.custID
FROM ItemT LEFT JOIN TransT ON ItemT.itemID = TransT.itemID
WHERE TransT.CustID=forms!CustomerF![CustomerCBO]
GROUP BY ItemT.itemName, TransT.custID;

I have a form that has a combo box CustomerCBO.
I am missing the point of how to get the query above on the form and how to get the combo box to change the data.

My combo box source is  CustT.CustID.

Any Ideas?
Show Just This Thread        Post Reply
Read Inner and Outer Joins Consignment DB by Judy B @ 6/4/2012
Just wondering... I am using Access 2010.  I received this Sql statment from a friend and it is stating that the Join is not supported, but the databse is running properly.

SELECT items.item, nz(Sum(transactions.qty).0) AS SumOfqty
FROM transations RIGHT JOIN items ON transactions.item=items.item and
GROUP BY items.item;

The small database supplied works just like I want it to, but when I look at the Query..I get "Join not supported".

I am guessing it is the RIGHT JOIN?

Any thoughts.

Reply from Richard Rost:

Yes. Try changing "RIGHT JOIN" to "OUTER JOIN".
Show Just This Thread        Post Reply
Read Inner and Outer Joins Consignment DB by Judy B @ 6/2/2012
Good afternoon!

I need a form in Access to show all items in the Item table (whether or not the customer has ordered).  

I want to sum each item that the customer ordered and a 0 in the item sum for the ones not ordered by customer.

So  can select the customer from a combo box and the  information (tblCust) shows on top half of form and in bottom half of the form I need all of the items from the item table (tblItem) and totals by each one of the items from the tbltransactions.  If they have not ordered the item, it would be 0.

I have a left outer join from the tlbItem to the tblTransactions.  This show all items properly, but I do not know how to join to the tblCustomers.  I do have a one to many relationship from tlbCustomers to tblTransactions.

Any help would be appreciated.
Show Just This Thread        Post Reply
Read Inner and Outer Joins Consignment DB by Judy B @ 5/30/2012
I will try..Thanks
Show Just This Thread        Post Reply
Read Inner and Outer Joins Consignment DB by Judy B @ 5/29/2012
Hello to all !

Lets start with I am New at complex access.

I have a database that tracks inventory for consignment (very simple inventory, not designed to do accounting transactions other than an Invoice print out).

Client wants a form that looks like his half page Invoice.
1. He wants it to show what the consignee has in the store (in first column), wants to go in the store and enter a count of that Inventory (in second column) and have it calculate the difference (in the third column).

I have a query that will sum by customer (not the problem).

The problem is ... he wants this form to show rows for each Inventory item he sells, whether or not the customer Inventories them (Only 13-15,just in case they want to buy them).

Where would I start to design the subform to show all Inventory Items from the ItemsT and sum all the transactions from the TransT in the appropiate columns on the InvoiceF?

Any ideas would be greatly appreciated.

Reply from Richard Rost:

If you use a ONE-TO-MANY relationship and set up an OUTER JOIN you should see ALL records from the table on the left and matching records from the table on the right of the join. With the default INNER JOIN you'll only see records from both tables where there are matches. An OUTER JOIN allows you to see, for example, ALL customers and their orders, whether the customer has an order or not.
Show Just This Thread        Post Reply
Read Outer Joins Issue Lesson 309 by Jim Gray @ 4/3/2011
I have been listening to Lesson 309 using Access 2010.  It appears that there is no longer a restricion in making outer joins for the cross reference query.  I was able to make both outer joins without a problem and without having to "stack" queries.  Just an FYI...

Reply from Richard Rost:

Very cool. I haven't played around with this in Access 2010 yet.
Show Just This Thread        Post Reply

Collapse All Topics


Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
  Your Name:  Required
  Your Email:  NOT Public


Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 8+2:
  Notify me when the this forum is updated
  Remember Me for my next comments
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard



You may want to read these articles from the 599CD News:

8/15/2019Last Chance for Access CDs
8/1/2019Customer List Form Template
8/1/2019New Template Access Customer Database
7/30/2019Microsoft Access Developer 13
6/20/2019TIP: Validation Rules in Access
11/20/2018Microsoft Access Developer 12
8/25/2018NEW: Access Dev 9, 10, 11
8/25/2018Microsoft Access Developer 11
8/25/2018Microsoft Access Developer 10
8/25/2018Microsoft Access Developer 9

Visual Basicindex
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
About Us
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Gift CDs
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP