PC Review


Reply
Thread Tools Rate Thread

Custom sort on a report

 
 
=?Utf-8?B?U2VjcmV0IFNxdWlycmVs?=
Guest
Posts: n/a
 
      28th Mar 2007
Is there a way to create a select option for users to be able to sort a
report the way they want when they run the report? Some users may want it one
way and then others might want it sorted another. How can I give them this
option, if at all?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2VjcmV0IFNxdWlycmVs?=
Guest
Posts: n/a
 
      28th Mar 2007
Hi Ken,
Actually I do have one question...Where do I point the combo box to choose
the fields for my sort function? Do I create another table with these field
names or maybe a value list? I'm a little confused there.

Thanks
SS

"Ken Sheridan" wrote:

> You can set the report's OrderBy and OrderByOn properties in its Open event
> procedure. Say you are opening the report from a form with a combo box which
> lists the fields from which a choice of sort order can be made then you'd use
> something like this:
>
> Me.OrderBy = Forms!YourForm!cboSortOptions
> Me.OrderByOn = True
>
> You can alternatively set one or more group levels if these are already set
> up in the report, e.g.
>
> Me.GroupLevel(0).ControlSource = Forms!YourForm!cboSortOptions
>
> You can make the combo box on the form more user friendly by putting the
> field names in a hidden first column and in a visible second column more
> descriptive text expressions.
>
> Ken Sheridan
> Stafford, England
>
> "Secret Squirrel" wrote:
>
> > Is there a way to create a select option for users to be able to sort a
> > report the way they want when they run the report? Some users may want it one
> > way and then others might want it sorted another. How can I give them this
> > option, if at all?

>

 
Reply With Quote
 
=?Utf-8?B?U2VjcmV0IFNxdWlycmVs?=
Guest
Posts: n/a
 
      28th Mar 2007
That sounds like it will do it! Thanks Ken!

"Ken Sheridan" wrote:

> You can set the report's OrderBy and OrderByOn properties in its Open event
> procedure. Say you are opening the report from a form with a combo box which
> lists the fields from which a choice of sort order can be made then you'd use
> something like this:
>
> Me.OrderBy = Forms!YourForm!cboSortOptions
> Me.OrderByOn = True
>
> You can alternatively set one or more group levels if these are already set
> up in the report, e.g.
>
> Me.GroupLevel(0).ControlSource = Forms!YourForm!cboSortOptions
>
> You can make the combo box on the form more user friendly by putting the
> field names in a hidden first column and in a visible second column more
> descriptive text expressions.
>
> Ken Sheridan
> Stafford, England
>
> "Secret Squirrel" wrote:
>
> > Is there a way to create a select option for users to be able to sort a
> > report the way they want when they run the report? Some users may want it one
> > way and then others might want it sorted another. How can I give them this
> > option, if at all?

>

 
Reply With Quote
 
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
Guest
Posts: n/a
 
      28th Mar 2007
You can set the report's OrderBy and OrderByOn properties in its Open event
procedure. Say you are opening the report from a form with a combo box which
lists the fields from which a choice of sort order can be made then you'd use
something like this:

Me.OrderBy = Forms!YourForm!cboSortOptions
Me.OrderByOn = True

You can alternatively set one or more group levels if these are already set
up in the report, e.g.

Me.GroupLevel(0).ControlSource = Forms!YourForm!cboSortOptions

You can make the combo box on the form more user friendly by putting the
field names in a hidden first column and in a visible second column more
descriptive text expressions.

Ken Sheridan
Stafford, England

"Secret Squirrel" wrote:

> Is there a way to create a select option for users to be able to sort a
> report the way they want when they run the report? Some users may want it one
> way and then others might want it sorted another. How can I give them this
> option, if at all?


 
Reply With Quote
 
shadreck vumisa
Guest
Posts: n/a
 
      28th Mar 2007

"Secret Squirrel" <(E-Mail Removed)> wrote in
message newsC7F8D0D-EE46-489E-992E-(E-Mail Removed)...
> Is there a way to create a select option for users to be able to sort a
> report the way they want when they run the report? Some users may want it

one
> way and then others might want it sorted another. How can I give them this
> option, if at all?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom sort in report grouping icccapital Microsoft Access Reports 9 9th Mar 2010 05:05 AM
sort report results by a custom field Caleb Microsoft Access Reports 1 8th Apr 2009 04:33 AM
How do I custom sort records in a report? =?Utf-8?B?U2FuZHk=?= Microsoft Access Reports 2 11th Sep 2007 01:22 AM
Custom sort order for a group in a report =?Utf-8?B?c3RtZ3V5?= Microsoft Access 2 17th Dec 2004 05:11 PM
custom sort order for a report? Grant Microsoft Access Reports 7 3rd Feb 2004 02:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.