I have a VB DataReport that looks something like:
Report Group Header
Insurance Group Name Insurance Group Number
Report Detail
Company Name Address No. Employees Etc.
There are multiple companies per Insurance Group.
I currently have a command defined in the DataEnvironment to run this report, which I modify dynamically when the program runs. This command is called cmdGrp, and is grouped by cmdGrp_GrpNm.
The DataMember of the report is set to cmdGrp_GrpNm.
The source for cmdGrp_GrpNm is currently being defined as:
SHAPE{ Select GrpNm, GrpNb, CompNm, ... from GrpReport} AS cmdGrp COMPUTE cmdGrp BY 'GrpNb', 'GrpNm'
When I run the report right now, the report displays grouped by Group Number in ascending order.
What I need to do is group by Group Number in descending order.
I have tried SHAPE{...} AS cmdGrp COMPUTE cmdGrp BY 'GrpNb' DESC, 'GrpNm'
to no avail.
When I check out the properties of the command in the DataEnvironment, there appears to be no way in the properties window to specify in which direction the fields of a child command are grouped within another command.
Is there any way to specify this direction, like an ORDER clause in a SQL string (ORDER BY field1 ASC, field2, DESC, etc.)?
Thanks for any help.
Steve [sig][/sig]
Report Group Header
Insurance Group Name Insurance Group Number
Report Detail
Company Name Address No. Employees Etc.
There are multiple companies per Insurance Group.
I currently have a command defined in the DataEnvironment to run this report, which I modify dynamically when the program runs. This command is called cmdGrp, and is grouped by cmdGrp_GrpNm.
The DataMember of the report is set to cmdGrp_GrpNm.
The source for cmdGrp_GrpNm is currently being defined as:
SHAPE{ Select GrpNm, GrpNb, CompNm, ... from GrpReport} AS cmdGrp COMPUTE cmdGrp BY 'GrpNb', 'GrpNm'
When I run the report right now, the report displays grouped by Group Number in ascending order.
What I need to do is group by Group Number in descending order.
I have tried SHAPE{...} AS cmdGrp COMPUTE cmdGrp BY 'GrpNb' DESC, 'GrpNm'
to no avail.
When I check out the properties of the command in the DataEnvironment, there appears to be no way in the properties window to specify in which direction the fields of a child command are grouped within another command.
Is there any way to specify this direction, like an ORDER clause in a SQL string (ORDER BY field1 ASC, field2, DESC, etc.)?
Thanks for any help.
Steve [sig][/sig]