M
mark909
I have a query that calulates the length of an item if it is present within a
certain project. How ever if that item, "New Mini-Duct Cable" isnt present
the SumOfLINE_LENGTH gives a blank field. What I want the query to do is
display a 0 if no records of "New Mini-Duct Cable" are found in an individual
project. Any Ideas?
SELECT CABLE_LINE.PROJECT_ID, CABLE_LINE.CABLE_LINE_TYPE,
Sum(CABLE_LINE.LINE_LENGTH) AS SumOfLINE_LENGTH
FROM CABLE_LINE
GROUP BY CABLE_LINE.PROJECT_ID, CABLE_LINE.CABLE_LINE_TYPE
HAVING (((CABLE_LINE.PROJECT_ID)=Forms!frmBillOfMaterials!txtProject_ID) And
((CABLE_LINE.CABLE_LINE_TYPE)="New Mini-Duct Cable"));
Thanks for any help!
certain project. How ever if that item, "New Mini-Duct Cable" isnt present
the SumOfLINE_LENGTH gives a blank field. What I want the query to do is
display a 0 if no records of "New Mini-Duct Cable" are found in an individual
project. Any Ideas?
SELECT CABLE_LINE.PROJECT_ID, CABLE_LINE.CABLE_LINE_TYPE,
Sum(CABLE_LINE.LINE_LENGTH) AS SumOfLINE_LENGTH
FROM CABLE_LINE
GROUP BY CABLE_LINE.PROJECT_ID, CABLE_LINE.CABLE_LINE_TYPE
HAVING (((CABLE_LINE.PROJECT_ID)=Forms!frmBillOfMaterials!txtProject_ID) And
((CABLE_LINE.CABLE_LINE_TYPE)="New Mini-Duct Cable"));
Thanks for any help!