F
Feeble Goat
Guest
I'm stuck, I'm an Access newbie with no VB knowledge. Please help.
Here is the SQL of the Query in question:
Here is the issue: If there is no Downtime with a Production Run ID#, there is no Downtime Sum record. What is the proper expression to return a 0.00 to the Downtime Hours field when the Downtime Sum record does not exist?
Thanks.
Here is the SQL of the Query in question:
SELECT [Production Run].[Production Run ID#], [Production Downtime Query].[Downtime Sum] AS [Downtime Hours], [Production Run Details].[Crew Size], [Downtime Hours]*[Crew Size] AS [Total Hours Down]
FROM ([Production Run] LEFT JOIN [Production Downtime Query] ON [Production Run].[Production Run ID#] = [Production Downtime Query].[Production Run ID#]) INNER JOIN [Production Run Details] ON [Production Run].[Production Run ID#] = [Production Run Details].[Production Run ID#];]
FROM ([Production Run] LEFT JOIN [Production Downtime Query] ON [Production Run].[Production Run ID#] = [Production Downtime Query].[Production Run ID#]) INNER JOIN [Production Run Details] ON [Production Run].[Production Run ID#] = [Production Run Details].[Production Run ID#];]
Here is the issue: If there is no Downtime with a Production Run ID#, there is no Downtime Sum record. What is the proper expression to return a 0.00 to the Downtime Hours field when the Downtime Sum record does not exist?
Thanks.