I have created a Crystal Report which has a command field
count(service_ID)
:
select count(service_ID)
from inbound_service
where service_ID={?Service_ID}
and it is returning correct count values according to the database.
In the main report I have a formula field
@Service_ID
:
if count(service_ID) =0
then "ID Does not exists"
else {?Service_ID}
It is working if the command field is not equal to 0, but not working for count(service_ID) = 0
.
If I try to show the command field value in a report, it is giving correct values for non-zero counts but showing nothing for 0 counts.