Results 1 to 2 of 2
  1. #1
    K1NJO is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    3

    Question Need a query to compare multiple dates and display earliest date.

    I have a table with multiple date columns. What I need the query to do is to compare these date columns and display the earliest date as well as which column it came from.

    For example, the table has PicDate, DocDate, TestDate, ExpDate, ExpItem. After comparing PicDate, DocDate, and TestDate, the query would display the results. The ExpDate column would show the earliest date from the 3 columns, and the ExpItem column would show which item it came from.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    That is likely a normalization mistake, but this method could be adapted:

    http://support.microsoft.com/default...b;en-us;209857
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Selecting Earliest and latest date
    By kstyles in forum Queries
    Replies: 10
    Last Post: 12-31-2010, 03:04 PM
  2. Replies: 1
    Last Post: 02-03-2010, 09:17 PM
  3. Replies: 3
    Last Post: 09-29-2009, 07:08 AM
  4. Compare date in a sql query
    By access in forum Forms
    Replies: 2
    Last Post: 06-17-2009, 12:57 PM
  5. Report to display multiple records by date.
    By af01waco in forum Reports
    Replies: 1
    Last Post: 03-21-2009, 02:12 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