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

Sorting by parameter 1

Status
Not open for further replies.

fhurmuzlu

Programmer
Nov 16, 2004
52
US
I want to create parameter called Division sorted by Action date and Disposition date?
can we craete drop-down parameter?

Thanks
 
Please explain more specifically what you are trying to do. You can't sort on a parameter. You can use a parameter to limit records used for sorting though.

-LB
 
You also can group by a formula (i.e. choose a field to group by) that is controlled by a parameter. It may not work for what you need. But it is a thought.
 
I want to create a parameter that the user can see the report by division or Action Date or Disposition Date (user option)
 
Create a string parameter with the three options. Then create a formula like this:

select (?Parameter}
case "Division" : {table.division}
case "Action Date" : totext({table.actiondate},"yyyy/MM/dd")
case "Disposition Date" : totext({table.dispositiondate},"yyyy/MM/dd")

You can either use this as a sort field or use it as a group field. If you want the dates to display in a different format, use the above formula just for sorting or grouping, but add the actual field in the desired format to the group header or body of the report.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top