Hi there,
I've created a report that brings up all associated information for a selected record, and any information from a second table with a certain status. When there isn't any information on the second table with that status, it won't display any of the information from the first table..
What I'm trying to achieve is to display the information from the first table, and IF there is any associated records on the second with that stauts, bring that up too, but if not, then just display the info from the first table and leave the other fields blank.
Essentially the report is blank if there isn't any information on the second table with that status. I've messed with the JOINS as well as pretty much everything else I could think of to get it to work - to no avail..
Please Help!! Here is an example of the code:
Code:
SELECT brews.brewID, brews.style, brews.KOs, [recipeDefinitions].[quantity]*[brews].[KOs] AS [DryHop-lbs], recipeDefinitions.ingredientName, recipeDefinitions.quantity, recipeDefinitions.recipeID, recipeDefinitions.stage
FROM brews LEFT JOIN recipeDefinitions ON brews.recipe = recipeDefinitions.recipeID
WHERE (((recipeDefinitions.stage)="DH"));