Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Expert One-on-One Access Application Development
This is the forum to discuss the Wrox book Expert One-on-One Microsoft Access Application Development by Helen Feddema; ISBN: 9780764559044
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert One-on-One Access Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 11th, 2004, 06:52 PM
Authorized User
 
Join Date: Jun 2004
Location: Cumberland, MD, USA.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?


Terry Waltz
__________________
Terry Waltz


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysterious Coding bLo C++ Programming 3 January 4th, 2007 01:22 AM
mysterious problem (data no inserting ) gratisaccount VB.NET 2002/2003 Basics 1 June 29th, 2006 08:48 AM
mysterious error runtime error '451' coyotworks Excel VBA 1 May 12th, 2006 03:57 PM
Mysterious FileSysObj Behavior mdoleman Access VBA 1 April 26th, 2005 04:55 PM
Hidden form value johnjohn Classic ASP Databases 2 November 10th, 2004 01:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.