Hi I would like to add into the SQL statement that when there was no value selected put in a 0. I looked at another example on the forum that said to use this Nz([Žurnalas].[Debetas], 0)
but I didn't have any luck. The field that I would like to have a 0 in can also be selected by the user to have a value in it.
SELECT Sum([LU Discarded pounds estimated Lookup].[Estimated Weight]) AS [Estimated Weight3270]
FROM [LU Discarded pounds estimated Lookup] INNER JOIN [Discard Species Haul Log] ON [LU Discarded pounds estimated Lookup].[Estimated Bin Weight] = [Discard Species Haul Log].[Estimated Weight3270];
Thanks
but I didn't have any luck. The field that I would like to have a 0 in can also be selected by the user to have a value in it.
SELECT Sum([LU Discarded pounds estimated Lookup].[Estimated Weight]) AS [Estimated Weight3270]
FROM [LU Discarded pounds estimated Lookup] INNER JOIN [Discard Species Haul Log] ON [LU Discarded pounds estimated Lookup].[Estimated Bin Weight] = [Discard Species Haul Log].[Estimated Weight3270];
Thanks
Comment