Hello all -
Using Crystal 8.5, SQL Server, ODBC.
I am working with a database that tracks employee training. In my event table there is a field (status) that records an employee's current status for a particular course. 'C' (Completed), 'E' (Enrolled), etc.
I have been assigned to report on certain courses according to this status field, i.e. list all employees with a status of 'C', then all employees with a status of 'E', etc, so I am running a report grouped by this field.
The problem is that some employees sign up for the same class more than once. So some employees have a record for course XXX101 with a status of 'E', and a second record for course XXX101 with a status of 'C'.
The specs of the report state that each employee should only show up once, with a status of 'C' having precedence over a status of 'E'. So I need to omit detail records from the 'E' group if there is a cooresponding record in the 'C' group for that employee.
Does Crystal provide direct functionality to do this? Or do I need to load an array on the 'C' group and conditionally suppress records in the 'E' group based on this array. Or perhaps a better idea?
-Gary
Using Crystal 8.5, SQL Server, ODBC.
I am working with a database that tracks employee training. In my event table there is a field (status) that records an employee's current status for a particular course. 'C' (Completed), 'E' (Enrolled), etc.
I have been assigned to report on certain courses according to this status field, i.e. list all employees with a status of 'C', then all employees with a status of 'E', etc, so I am running a report grouped by this field.
The problem is that some employees sign up for the same class more than once. So some employees have a record for course XXX101 with a status of 'E', and a second record for course XXX101 with a status of 'C'.
The specs of the report state that each employee should only show up once, with a status of 'C' having precedence over a status of 'E'. So I need to omit detail records from the 'E' group if there is a cooresponding record in the 'C' group for that employee.
Does Crystal provide direct functionality to do this? Or do I need to load an array on the 'C' group and conditionally suppress records in the 'E' group based on this array. Or perhaps a better idea?
-Gary