Results 1 to 2 of 2
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085

    Form.OrderBy


    I have a form/subform data entry system where the subform uses the form.orderby to sort the records on the subform descending. When the main form is opened it works perfectly. however, if the user searches for a specific record on the main form and then goes to that record the orderby stops working. If the user simply changes records without using the search the order by is fine. Why would the search remove the order by on the subform?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I do not know why a search would affect the OrderBy property. Perhaps it makes more sense to apply ORDER BY to a query and use that as the RecordSource of the Form.
    http://www.w3schools.com/sql/sql_orderby.asp

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

Similar Threads

  1. me.orderby with refrence ID
    By pyromaniac511 in forum Programming
    Replies: 16
    Last Post: 06-27-2016, 06:19 PM
  2. OrderBy not working
    By Euler in forum Forms
    Replies: 13
    Last Post: 02-06-2015, 07:21 AM
  3. How Can I: OrderBy inside an Other OrderBy
    By RichardAnderson in forum Forms
    Replies: 1
    Last Post: 08-23-2013, 01:04 PM
  4. Me.OrderBy not working
    By Rramjet in forum Forms
    Replies: 5
    Last Post: 03-15-2013, 11:13 AM
  5. Form Filter/OrderBy Issue
    By Gray in forum Forms
    Replies: 2
    Last Post: 05-13-2011, 03:10 PM

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