Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2007, 05:36 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default User selection to sort records in a Crystal Report

I've been playing about with some Crystal Reports for a few weeks now but can't seem to crack a problem:

I am using version 9.2.

I want to create a drop-down menu that allows the user to select a criteria (either employee ID or surname) to then sort the records shown on the report.

An example of this would be - a report showing a list of employees by sorted by employee number. It also shows their personal details (names, addresses, contact details, etc).

On running the report, the user should be able to select from a drop-down menu the option of showing the records sorted in employee number or surname alphabetical order.

I have tried to implement this using a parameter field to allow the selection (the easy bit- this works fine), and a formula to take the value of that selection, but here is where I get stuck - how to implement the actual sorting. I am assuming it is in the formula that this is done, but I can't figure out how to do it.


Any advice would be most helpful

Thanks

 
Old January 24th, 2007, 01:03 PM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've worked it out now!

assign the field in the recordset/database I'm reporting on in a formula. Then, insert a summary of this formula e.g. maximum of @sort. Stick this in the report body but hide (suppress) it (maybe run and check it first though for the values so they're coming out in the user selected order).

Izzy wizzy, let's get busy - it works!! :)

Answered by own question!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate records in Crystal Report integrated int shashisatya Crystal Reports 0 February 19th, 2006 10:06 AM
Crystal Web Report asking User name/password abmohan75 Crystal Reports 2 January 22nd, 2006 04:40 AM
how to show user interface data in crystal report sanjay_jadam Crystal Reports 1 May 26th, 2005 02:25 AM
In Crystal Report .net, problem whenlarge records kathir Crystal Reports 0 January 19th, 2005 09:12 AM
Sort Records Based on Totals mvollmer Classic ASP Databases 1 July 11th, 2004 11:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.