I have a field in my report called "Srt". I would like to have this field sometimes sorted in ascending order and sometimes in descending order based on users choice. The default is in ascending order.
The Sorting and grouping in the report looks like this:
Grp1 | Ascending ===> This field is grouped
Srt | Ascending ===> Not grouped
How can I change it to descending order
I tried this code but I could not get it to work.
I get this error message
object doesn't support this property or method.
Thanks in advance for your help!!
The Sorting and grouping in the report looks like this:
Grp1 | Ascending ===> This field is grouped
Srt | Ascending ===> Not grouped
How can I change it to descending order
I tried this code but I could not get it to work.
Code:
Reports("Summary Report").Controls!Srt.SortOrder = True
I get this error message
object doesn't support this property or method.
Thanks in advance for your help!!