Results 1 to 5 of 5
  1. #1
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286

    Make report sort by IDs and then by Date

    Hello, i want my report to sort by ID number, then by Date (im using access 2010). My date column values are in C(Date) format. However, when the report sorts it, it treats the values as if it were text so for example instead of listing like this:



    1/1/2012
    1/2/2012
    1/11/2012


    it goes:

    1/1/2012
    1/11/2012
    1/2/2012

    pleas help, picture atatched of my current setup in the report sort portion. thanks!


    Click image for larger version. 

Name:	sort.JPG 
Views:	10 
Size:	16.8 KB 
ID:	8329

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Unfortunately there is not enough info here. However from your description and the image showing "with A on top" it looks like that is not a date field but a text field. So either the field within the table is text formatted or you're formatting the date for a specific format and that formatting has the query displaying the field as text not a date, but that's only a guess as I can't see the underlying query or table structure

  3. #3
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    as mentioned above, the data in the particular column was originally in text format. I used a CDate([Column]) function to convert the values into dates. When i sort the column from low to high, it sorts it correctly and treats the values as dates. However, when i put it into the report, it treats it as text even though its from the same column...

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Do the sort in the query not the report that should fix it.

  5. #5
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    thanks! fixed it

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

Similar Threads

  1. Make TEXTBOXES sort by DESCENDING order
    By taimysho0 in forum Programming
    Replies: 1
    Last Post: 12-05-2011, 04:52 PM
  2. Sort by date and year
    By Douglasrac in forum Queries
    Replies: 13
    Last Post: 04-07-2011, 10:02 AM
  3. Carrying over sort to report
    By eww in forum Programming
    Replies: 2
    Last Post: 03-04-2011, 03:39 PM
  4. sort data in the report
    By rawandjamal in forum Reports
    Replies: 1
    Last Post: 12-23-2010, 07:07 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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