Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting Records

Status
Not open for further replies.

ajp18

Programmer
Jun 13, 2003
57
US
Hi,

I am grouping by empNo and I like to sort by location.
I am able to sort by name and EmpNo. I am passing order by clause in query.
This is a report's format:

RH
PH
GH (Group by EmpNo)
DE (Suppresed)
GF <EmpNo, Name, SSN, Amount>
RF <Total: Amount>
PF

I need help.

Thanks
 
Crystal 8.5 insists on groups being the highest item or items in the sort.

If you want to sort by Location within Empno, add it using [Sort Records] under [Report] on the menu.

If you want to sort by Empno within Location, then add Location as a higher group. [Change Group Expert] under [Report] allows you to choose which group is the higher, and unlike other 'Experts' you can invoke, it does nothing beyond what you tell it to.

(Posting problems. If this is a duplicate, sorry.)

Madawc Williams
East Anglia, Great Britain
 
Thanks for reply,

I wanted to sort by Location within EmpNo; I have done as you suggested: &quot; [Sort Records] under [Report] on the menu.&quot; But it did not work.

I am sorry I forgot to mention that in group footer there is a surpressed field called location.

GF <EmpNo, Name, SSN, Amount, Location>

Any idea what could be wrong or any other alternatives.
Once again I am trying sort based on userinput.

Thanks
 
to sort based on user input, you need to create a parameter and then use the parameter to group on.

LMC cryerlisa@hotmail.com

select * from Management where proj_mgmt_skills <> NULL

0 records returned
 
I am sorry, but it does not seem to be working. Is it ok for me to e-mail you the report.

Thanks
 
save it WITH DATA and email - I will try to take a quick look at it.



LMC cryerlisa@hotmail.com

select * from Management where proj_mgmt_skills <> NULL

0 records returned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top