SortOrder Property
From Microsoft Access Visual Basic
expression.SortOrder
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The SortOrder property uses the following settings.
| Setting | Visual Basic | Description |
|---|---|---|
| Ascending | False | (Default) Sorts values in ascending (A to Z, 0 to 9) order. |
| Descending | True | Sorts values in descending (Z to A, 9 to 0) order. |
Note You can set the SortOrder property by using the Sorting And Grouping box, a macro, or Visual Basic.
In Visual Basic, you set the SortOrder property in report Design view or in the Open event procedure of a report by using the GroupLevel property.
Example
The following example sets the sort order to ascending for the first group level in the "Product Summary" report.
Reports("Product Summary").GroupLevel(0).SortOrder = False