Results 1 to 5 of 5
  • Thread Tools
  1. Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,869
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display Date With Leading Zeros? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    SELECT tblArrivals.dteDateArrival AS Arrival, Count(tblArrivals.lngID) AS [Claims] FROM tblArrivals GROUP BY tblArrivals.dteDateArrival UNION SELECT "<All Dates>", 1 FROM tblArrivals UNION SELECT "<New Date>", 1 FROM tblArrivals;

    The above SQL works OK on my computer and returns:

    <All Dates> 1
    <New Date> 1
    10/31/2003 40
    11/03/2003 62
    11/14/2003 43
    etc

    When I run this on my customers computer with same FE & BE it returns the following:

    <All Dates> 1
    <New Date> 1
    10/31/2003 40
    11/14/2003 43
    11/3/2003 62
    etc

    Customer

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 13 Times in 13 Posts

    Re: Display Date With Leading Zeros? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    You probably have a different Short Date format in the Regional Settings control panel.

    The obvious suggestion is to use the Format function. But if this related to <post#=315240>post 315240</post#>, that won't help. If the questions are related, it would have been better to ask them in the same thread.

  4. Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,869
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display Date With Leading Zeros? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    Hi Hans

    Customer

  5. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 13 Times in 13 Posts

    Re: Display Date With Leading Zeros? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    >> Any other suggestions?

    For what?

  6. Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,466
    Thanks
    2
    Thanked 39 Times in 39 Posts

    Re: Display Date With Leading Zeros? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    John
    The simplest way to sort dates is to be certain the date is stored as a time/date field. Then sort in your query on the data field, and in another field, return the date in whatever format you wanted.

    Also, you didn't answer Hans' question - this sounds very much like the same problem with two slightly different definitions. If it is, this should have been a single thread rather than two.
    Wendell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •