Mysterious Hidden OrderByOn
Has anyone tried to verify the highlighted text at the top of page 122? I tried to verify the author's disclaimer regarding sorting by multiple fields using the Order By property. To my surprise I found that sorting on a single field using the Order By property (thru the Properties dialog listbox) didn't work either. However, I learned that the problem was not with the multiple sort fields, but the problem is related to the mysteriously hidden OrderByOn property.
I could not find the OrderByOn property anywhere on the Properties dialog listbox, yet the property is indeed a property of the form. So I created a command button on a continuous form which "toggled" the OrderByOn property on (TRUE) and off (FALSE) and I added a statement to the Open event of the form that set the OrderByOn property to FALSE when the form was initially opened.
With a specific field listed in the OrderBy property on the Properties dialog listbox, I opened the form. The form was NOT sorted by the OrderBy field. Then I clicked the command button to set the OrderByOn property to TRUE ... the form immediately refreshed in sorted order.
If you repeat the process specifying multiple fields in the OrderBy property on the Properties dialog listbox, you will find that the form will immediately be refreshed using the multiple-field sort order. So, the problem is not with the multile-field but the problem is related to the mysteriously hidden OrderByOn property.
Does anyone know how to toggle the OrderByOn property without using VBA code?