would anyone be able to tell me how to construct a query that will return all values from another query even if one of the tables has noe related records?
I have query which joins another query and a table... the query works fine if that table has related data... then the query returns all the records as it should... but this table will not necessarily have records for all of the items in the first query...
How do I get this query to list all record returned by the query even when there is nothing in the table when filtered with the criteria?
SELECT DISTINCTROW Qry_Stock.*, NewSTOCK.NewStock
FROM NewStock LEFT JOIN Qry_STOCK ON (Qry_Stock.StockID = NewSTOCK.StockID) AND (Qry_Stock.SiteID = NewSTOCK.SiteID)
WHERE (((Format([NewStockDate],"m"))=[forms]![Reporting]![select_month].[value]));

I have query which joins another query and a table... the query works fine if that table has related data... then the query returns all the records as it should... but this table will not necessarily have records for all of the items in the first query...
How do I get this query to list all record returned by the query even when there is nothing in the table when filtered with the criteria?
SELECT DISTINCTROW Qry_Stock.*, NewSTOCK.NewStock
FROM NewStock LEFT JOIN Qry_STOCK ON (Qry_Stock.StockID = NewSTOCK.StockID) AND (Qry_Stock.SiteID = NewSTOCK.SiteID)
WHERE (((Format([NewStockDate],"m"))=[forms]![Reporting]![select_month].[value]));
