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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT: Sorting using Crystal

Status
Not open for further replies.

SmileyFace

Programmer
Sep 10, 2002
99
US
Hi. Need help with the following as soon as possible. Thanks in advance for any help offered.

I have a crystal report which connects to a 'View' in a SQL database and retrieves records from there. The view doesn't have any 'Order By' in the statement. Yet the records appear sorted by this one 'NumOrder' column. The report is designed to have 2 groups. I looked into the 'Sorting' in the report and it appears to be in Descending order for each group, but the sort is performed on an entirely different column...'Title'.

My question is, is there any other way a sort can be performed? Also, I tried adding a sort into the view along with an additional field. However this is not refreshed in my report. How do I refresh the 'view' from the database inside of Crystal?
 
To refresh your report, use:

Database->Verify Database.

Does your View have groupings in it? If so, that will be the first level of sortation, as will any groups placed in Crystal.

You'll be better served to post sample data and expected output.

-k
 
If you need to group on one field and sort on another it is easiest to accomplish this with a stored procedure that performs the grouping then a CR report that performs the sorting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top