dolfan1873
Technical User
here is the SQL from a query i have, this works fine until i have no records to count in one of the programs (e2cipt or modipt or psipt), it just eliminates that program. is there a way i can keep the program and make it come in with a 0(zero).
SELECT Count(Input_tbl.Program) AS CountOfProgram, Input_tbl.Program
FROM Input_tbl
WHERE (((Input_tbl.TypeDocument)="RTE" Or (Input_tbl.TypeDocument)="RCI") AND ((Input_tbl.DateComplete) Is Null))
GROUP BY Input_tbl.Program
HAVING (((Input_tbl.Program)="E2CIPT" Or (Input_tbl.Program)="MODIPT" Or (Input_tbl.Program)="PSIPT"))
ORDER BY Input_tbl.Program.
SELECT Count(Input_tbl.Program) AS CountOfProgram, Input_tbl.Program
FROM Input_tbl
WHERE (((Input_tbl.TypeDocument)="RTE" Or (Input_tbl.TypeDocument)="RCI") AND ((Input_tbl.DateComplete) Is Null))
GROUP BY Input_tbl.Program
HAVING (((Input_tbl.Program)="E2CIPT" Or (Input_tbl.Program)="MODIPT" Or (Input_tbl.Program)="PSIPT"))
ORDER BY Input_tbl.Program.