Subform Sorting

Posted on 2006-04-14
Last Modified: 2012-05-05
I'm having trouble sorting my subform by my Date field. The name of the field is in the Order By property. What could be the issue?
Question by:tespinoz06
    LVL 77

    Expert Comment

    Hi tespinoz06,
    Based on what you have said it sounds ok.
    You will have to post the SQL for your subform recordsource.

    LVL 39

    Accepted Solution

    Sorting should really be done in the query the subform is bound to but if you only want to do this with the subform properties you may need to programatically turn the OrderByOn = True.

    I hope your field name is not really Date ... that is a built in function to Access and may be causing your problems. You can try surrounding it with brackets but it still might not work ...   [Date]

    Author Comment

    this article also helped a little:

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
    Familiarize people with the process of utilizing SQL Server views 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 Access…
    With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now