• How to make form display records in order?

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to make form display records in order?

    Author
    Topic
    #463044

    I have a form that I would like to have sorted and displayed by last name (Lastname). How do I do this? I sorted the underlying table but that does not seem to help.

    Viewing 0 reply threads
    Author
    Replies
    • #1180538

      Create a query based on the table that sorts the records the way you want, and use the query as record source for the form.

      BTW, unlike forms, reports ignore the sort order of their record source. For a report, you must specify the sort order in the Sorting and Grouping dialog.

      • #1180550

        Thank you. Does this mean I will need to run the query each time I open the form in question? If so, how can I automate that so that new record entries will be correctly sorted when I next open that form?

        Create a query based on the table that sorts the records the way you want, and use the query as record source for the form.

        BTW, unlike forms, reports ignore the sort order of their record source. For a report, you must specify the sort order in the Sorting and Grouping dialog.

        • #1180551

          Does this mean I will need to run the query each time I open the form in question?

          No! If you set the Record Source property of the form to the name of the query, the form will automatically run the query when it opens. You don’t have to do or set anything extra.

          • #1180554

            Cool! Thanks again.

            No! If you set the Record Source property of the form to the name of the query, the form will automatically run the query when it opens. You don’t have to do or set anything extra.

    Viewing 0 reply threads
    Reply To: How to make form display records in order?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: