Results 1 to 2 of 2
  1. #1
    rsACC99 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Posts
    2

    Turn Off/Prevent OrderBy - How?

    Access 2007. Usually my form is sorted by the Record Source query its based on. Form Properties: Filter - nothing, Order By - nothing. When I Filter-By-Selection an unwanted, previously used sort order is (sometimes?) applied. The property sheet Order By remains blank. I've tried programming the Unload Event:

    Me.Filter = ""
    Me.OrderBy = ""
    DoCmd.Save acForm, "FormName"

    How do i stop the form from applying a sort it is somehow saving -OR- how do i automate the deletion of a saved sort -OR- prevent the save in the first place?



    thanks!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    You could try

    Debug.print me.Recordsource in the Open event for the Form
    This should show you what Access is using.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Me.OrderBy not working
    By Rramjet in forum Forms
    Replies: 5
    Last Post: 03-15-2013, 11:13 AM
  2. OrderBy Not working for select few cases
    By walter189 in forum Programming
    Replies: 2
    Last Post: 08-19-2011, 05:53 AM
  3. prompt for orderby in report
    By nkuebelbeck in forum Access
    Replies: 2
    Last Post: 08-18-2011, 12:57 PM
  4. Form Filter/OrderBy Issue
    By Gray in forum Forms
    Replies: 2
    Last Post: 05-13-2011, 03:10 PM
  5. OrderBy Losing Criteria
    By P5C768 in forum Forms
    Replies: 1
    Last Post: 01-21-2011, 01:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums