Solved

Appl/Remove Filter/Sort

Posted on 1998-04-22
4
199 Views
Last Modified: 2012-05-04
Using the FilterOn property of a form, I can tell if a form displays filtered data or not. How can I tell if the user has sorted the data or not; for example how can I tell if the user has clicked on one of the toolbar sort buttons?

Thanks
0
Comment
Question by:rmk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:ramrom
ID: 1955872
Examine the form's OrderBy property.
0
 

Author Comment

by:rmk
ID: 1955873
My tests indicate that your suggestion won't do the trick. For example: 1) open a form with a blank order by property, 2) use the tool bar sort button and the order by property gets a value, 3) remove the filter / sort using the menu bar or shortcut menu for the form to restore the form to its recordsource sort and the order by property does NOT get cleared; so at this point I can't tell if the form is in some user specified sort or not.
0
 
LVL 17

Accepted Solution

by:
ramrom earned 100 total points
ID: 1955874
Sorry; you should examine OrderBy and OrderByOn. The most recent filter/sort is saved in OrderBy. It is in effect only when OrderByOn is true. If the user removes filter/sort OrderByOn goes false.
0
 

Author Comment

by:rmk
ID: 1955875
Thanks! I wasn't aware of the OrderByOn property.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question