Results 1 to 6 of 6
  1. #1
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92

    Unhappy Sub Form's ID# Not Sorted

    Hello,



    I have a sub-form where a tab is for ID#s with data. The issue is the ID#s are not sorted. How can I make them in order? Some of them have ID# 1-10 (sorted) then before the next will be ID#s 23, 24 then back to ID# 11-20.

    By the way, data from sub-form is coming from a table. I wanted to sort the ID field name.

    Please help!

    Thanks,
    Netchie

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Either base the subform on a query that includes the sorting, or set the Order By property of the form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92
    Hi pbaldy,

    Long time to talk

    When you say set the Order By property of the form, where is that? Should I go to the property of sub form?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It's a property of a form, in your case the subform. You can set it in design view or in code.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92
    Nevermind, I found it. What I have is

    [tblID].[ColorID]

    I guess it's not sorted by ID but ColorID so should I make it as [tblID].[ID#] instead?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Whatever field(s) you want the sort on.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Inner Join on Sorted Columns
    By Nobody in forum Queries
    Replies: 6
    Last Post: 08-24-2010, 03:28 PM
  2. return last value in a sorted query / table
    By markjkubicki in forum Programming
    Replies: 5
    Last Post: 07-07-2010, 08:56 AM
  3. Some values in report did not sorted
    By Akirien in forum Reports
    Replies: 1
    Last Post: 04-14-2010, 11:31 PM
  4. Replies: 2
    Last Post: 02-26-2010, 08:53 AM
  5. Multiple Query Results Sorted Together
    By Rawb in forum Reports
    Replies: 1
    Last Post: 12-10-2009, 04:05 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