Hello everybody,
I have the following problem with Crystal Reports formulas (I'm working with version 7).
I want to make some sort of SQL-selection, a selection with conditions. So far, I have the following formula:
if {OPL_UITVOERING.STATUS_CODE} = "DE" or {OPL_UITVOERING.STATUS_CODE} = "DEOP"
then count ({OPL_INSCHRIJVING_MODULE.ID}, {OPL_UITVOERING.ID});
This isn't working in the right way, because now all the "OPL_UITVOERING.ID" are counted, and I just want the ones that have a certain status_code.
In SQL that would be something like:
select count (status_code) as TEST from opl_uitvoering where status_code = "DE" or "DEOP";
Can anybody help me with this problem?
Many thanks,
Michael Roos
I have the following problem with Crystal Reports formulas (I'm working with version 7).
I want to make some sort of SQL-selection, a selection with conditions. So far, I have the following formula:
if {OPL_UITVOERING.STATUS_CODE} = "DE" or {OPL_UITVOERING.STATUS_CODE} = "DEOP"
then count ({OPL_INSCHRIJVING_MODULE.ID}, {OPL_UITVOERING.ID});
This isn't working in the right way, because now all the "OPL_UITVOERING.ID" are counted, and I just want the ones that have a certain status_code.
In SQL that would be something like:
select count (status_code) as TEST from opl_uitvoering where status_code = "DE" or "DEOP";
Can anybody help me with this problem?
Many thanks,
Michael Roos