Results 1 to 2 of 2
  1. #1
    sfoot0309 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    2

    Date Sorting

    I have the following information in my database.



    Disc Name Date1 Description
    Name1 yyyy text
    Name1 text
    Name1 mm/dd/yyyy text
    Name1 mm/yyyy text
    Name2 mm/dd/yyyy text
    Name2 text
    etc

    The date1 field is a text format and not a date format due to the different date1.

    I need to sort by disc name then by the date1 field - in chronological order.

    If it can't be done, please let me know.

    Thank you in advance.

    To expand on my post
    Unfortunately, the problem I am having is that I have the following dates in a text field in my table

    2009
    2/1/2008
    6/1997
    and no date

    Of course, when you sort on text fields I get the following result

    no date
    2009
    2/1/2008
    6/1997

    Of course I want
    no date
    6/1997
    2/1/2008
    2009

    I am fairly new to access so my knowledge is pretty limited.
    Last edited by sfoot0309; 04-25-2010 at 07:02 AM.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    there is no way to do it if you have nothing to serve as a point of consistency. if the dates are all of different format like that, none of the date functions will work (I don't think anyway). there is no way for access to know if, for example "2009" by itself is a date or not. and if you used the DATEPART function on it, you might get a fraction of the number back. might try that first though

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

Similar Threads

  1. Sorting in a list box
    By bryanno in forum Access
    Replies: 1
    Last Post: 03-24-2010, 03:03 PM
  2. Need Sorting Help
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 07:39 PM
  3. Sorting by date between different groupings
    By wagspk in forum Reports
    Replies: 0
    Last Post: 03-11-2009, 11:53 PM
  4. Sorting By Date!
    By Pirate in forum Access
    Replies: 0
    Last Post: 07-19-2007, 02:42 PM
  5. Sorting in a subform
    By hraup in forum Forms
    Replies: 2
    Last Post: 08-29-2006, 12:35 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