Results 1 to 3 of 3
  1. #1
    shanky365 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    13

    Comparing dates

    Guys,
    i have a query which gives me some items with expected time arrival dates. (ETA) in the store.. now, i want to get the missing items by the foll trick:
    if the ETA date has passsed today's dates then that item is not in store.
    so how can i compare ETA dates and today !

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    In a new column in your query, type this expression:
    DeliveryLate: IIF(Date()>[ETA],"LATE!","")
    Alan

  3. #3
    shanky365 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    13
    Quote Originally Posted by alansidman View Post
    In a new column in your query, type this expression:


    Alan
    Thanks a ton! it works!

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

Similar Threads

  1. Comparing two tables.
    By elmister in forum Access
    Replies: 11
    Last Post: 08-24-2011, 11:59 AM
  2. display all dates between two dates
    By KenThompson in forum Access
    Replies: 8
    Last Post: 02-23-2011, 01:11 PM
  3. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM
  4. Comparing Dates And Matching Quantities
    By chrisleng in forum Programming
    Replies: 0
    Last Post: 02-23-2010, 10:50 AM
  5. Comparing Part Quantities According to Dates
    By rochy81 in forum Reports
    Replies: 6
    Last Post: 05-19-2009, 09:11 AM

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