Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

controlling record order

controlling record order

controlling record order

I have a report that shows data from a survey across multiple years.  One of the bound controls is a survey date field which is placed in the details section.  The report is also grouped by another category of information.  I would like the data to show up consistently in the same year order

Survey date = 1999
Survey date = 2000
. . . in that order for each record.  Instead, some records have year 2000 first and some have year 1999 first -- this is a little tedious for the reader -- what suggestions does anyone have?

RE: controlling record order

What you might try is putting an expression in your underlying query to capture the year portion of the date:

Year: DatePart("yyyy",SurveyDate)

In the report itself, use Sorting/Grouping and set a group control on the Year field; you can either use or not use a group header/footer depending on how you want the info displayed.

Hope this helps.

Larry De Laruelle

RE: controlling record order

Thanks for your reply -- actually, I did go to the report and saw that the date field was not included in the sorting/grouping.  When I added it, that took care of the problem.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close