Results 1 to 2 of 2
  1. #1
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27

    Ordering Data within a form

    Hi,



    I have a table that contains the following fields

    ID
    Date
    Note

    The form that I have created is based on the table. I want the form to be ordered by date and not the ID. Is it possible to create some VBA that opens the form and automatically sorts the fields by date?

    Thanks

  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,521
    No code needed, unless you want it to be dynamic. Either base the form on a query with the appropriate sort, or use the Order By property of the form. You can set the OrderBy and OrderByOn properties in VBA, but like I said I wouldn't bother if you always want it sorted the same way.
    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. New Ordering System!
    By amaconline in forum Access
    Replies: 2
    Last Post: 09-27-2011, 11:15 AM
  2. Ordering System
    By Gustavo in forum Access
    Replies: 1
    Last Post: 11-21-2010, 02:16 AM
  3. Ordering data from a query
    By kulanga in forum Queries
    Replies: 9
    Last Post: 03-24-2010, 08:16 AM
  4. Replies: 5
    Last Post: 06-30-2009, 09:30 AM
  5. Replies: 1
    Last Post: 08-04-2008, 03:30 AM

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