Thanks for taking the time to read my question.
I'd like to be able to suppress a section on my report if a certain 'approval' activity has not been performed against the record. Please note, there will be many activities performed against any given record.
At first I tried to suppress the section if...
activity_type.name <> 'approval'
...but that is not working. The section is always being suppressed on my report regardless of the existence or non-existence of the 'approval' activity.
I am able to select the records using SQL as shown below, but can anyone help me translate this for Crystal 9?
SELECT
RECORD.id
FROM
RECORD, Project
WHERE
Project.id = RECORD.project_id AND RECORD.id
NOT IN (
SELECT
record_id
FROM
record_activity
WHERE
record_activity_type IN (139)
)
I'd like to be able to suppress a section on my report if a certain 'approval' activity has not been performed against the record. Please note, there will be many activities performed against any given record.
At first I tried to suppress the section if...
activity_type.name <> 'approval'
...but that is not working. The section is always being suppressed on my report regardless of the existence or non-existence of the 'approval' activity.
I am able to select the records using SQL as shown below, but can anyone help me translate this for Crystal 9?
SELECT
RECORD.id
FROM
RECORD, Project
WHERE
Project.id = RECORD.project_id AND RECORD.id
NOT IN (
SELECT
record_id
FROM
record_activity
WHERE
record_activity_type IN (139)
)