Form, Query Types, Report, Table.
You can use the OrderByOn property to specify whether an object’s OrderBy property setting is applied.
The OrderByOn property uses the following arguments.
Setting |
Description |
Visual Basic |
Yes |
(Default) The OrderBy property setting is applied when the object is opened. |
True (-1) |
No |
The OrderBy property setting isn’t applied when the object is opened. |
False (0) |
For reports, you can set the OrderByOn property in the report’s property sheet, a macro, or using Visual Basic.
For all other objects, you can set the OrderByOn property by clicking the sort button from the toolbar or using Visual Basic.
When a new object is created, it inherits the RecordSource, Filter, OrderBy, OrderByOn, and FilterOn properties of the table or query it was created from.
AllowFilters Property, ApplyFilter Action, ApplyFilter Method, Filter Property, FilterOn Property, OrderBy Property.