Hi
Vital stats first of all:
Crystal 8.5 connecting to SQL server via OLEDB connection.
I'm having a problem with suppressing groups within a report.
The report i have has a group relting to an ID field in the data base. Each ID has a name location and department associated with it, these are listed in the details section
The Request table is a one to many relation with the ClientDetails table joined on the ID field. ClientDetails links with a Style table.
Each record in the ClientDetails table has a StyleID which links to the Style table. If for example this ID was 2 then {Style.alpha1} takes on the value "name", if its 4 then it assumes the value "Location"
e.g.
[Group Header] {Request.ID}
[Details section]{Style.alpha1} {ClientDetails.Alpha1}
possible output
10000
name John Smith
location Hospital1
department CCU
10001
name Bob Jones
location Hospital2
department A&E
Given this output what i wuld like to do is suppress all of the groups with the location = Hospital2
i.e. {ClientDetails.alpha1} = "location"
Does anyone have any ideas how i can do this. If i try using the record selection and include the above criteria it shows all of the desired records but it omits the name and department fields as they are also {ClientDetails.alpha1} just that they have a different value due to the style ID.
This has been troubling me for a while now and i'm really not sure how this can be resolved if at all. Any help will be most appreciated. I hope i've explained the problem well enough.
Thanks in advance
Vital stats first of all:
Crystal 8.5 connecting to SQL server via OLEDB connection.
I'm having a problem with suppressing groups within a report.
The report i have has a group relting to an ID field in the data base. Each ID has a name location and department associated with it, these are listed in the details section
The Request table is a one to many relation with the ClientDetails table joined on the ID field. ClientDetails links with a Style table.
Each record in the ClientDetails table has a StyleID which links to the Style table. If for example this ID was 2 then {Style.alpha1} takes on the value "name", if its 4 then it assumes the value "Location"
e.g.
[Group Header] {Request.ID}
[Details section]{Style.alpha1} {ClientDetails.Alpha1}
possible output
10000
name John Smith
location Hospital1
department CCU
10001
name Bob Jones
location Hospital2
department A&E
Given this output what i wuld like to do is suppress all of the groups with the location = Hospital2
i.e. {ClientDetails.alpha1} = "location"
Does anyone have any ideas how i can do this. If i try using the record selection and include the above criteria it shows all of the desired records but it omits the name and department fields as they are also {ClientDetails.alpha1} just that they have a different value due to the style ID.
This has been troubling me for a while now and i'm really not sure how this can be resolved if at all. Any help will be most appreciated. I hope i've explained the problem well enough.
Thanks in advance