Query: Show All Records (1 Viewer)

JangLang

New member
Local time
Today, 09:30
Joined
May 26, 2013
Messages
2
This is basic I'm sure. Be I'm a newbie so please excuse.

I have a query joing two tables. TableInvoice in the query is Product number and Date purchased. TablePrices contains the same fields and contains prices (quarterly) over the past five years.

Joined by PONumber, I want the query to find the price charged for that date. Right now, if the Product number (TableInvoice) is not listed in TablePrices, it won't show. So, 100 Records might return only 80 if TablePrices does not have all of the Product numbers.

Is there a better way to return all 100 records in TableInvoice and show (Blank) price data if the item is not in TablePrices?
 

CJ_London

Super Moderator
Staff member
Local time
Today, 17:30
Joined
Feb 19, 2013
Messages
16,607
Use a left join.

In the query builder, double click on the line joining the two tables and select the option of showing all tableprices
 

Users who are viewing this thread

Top Bottom