Results 1 to 4 of 4
  1. #1
    babak.nourani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    6

    Question Three Date fields

    Hi,




    I have 3 Date fields in my table.
    I want to write a query which shows the records which are older than 2 weeks in any of those dates. In other words I want any of those records to be shown in the query if any of those dates are older than 2 weeks ago.

    I don't know how?

    What is the easiest way to do that?


    I know this is a very easy problem. I would be so thankful if you kindly help me in this.




    Best regards
    :-)

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Criteria:

    <Date()-14

    Put two of the criteria each on a different OR row of the query designer.
    Last edited by June7; 10-19-2011 at 12:16 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    babak.nourani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    6
    OK. But there are 3 Date fields. What about the third one?


    Regards.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    One goes on the Criteria row, the other two each go on separate Or row of the query designer. This result in the SQL would be: This OR This OR This
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. join date fields
    By rickscr in forum Database Design
    Replies: 4
    Last Post: 04-22-2011, 10:39 AM
  2. Date Fields
    By wali60 in forum Access
    Replies: 1
    Last Post: 03-28-2011, 06:58 PM
  3. Look for blank date fields
    By NOTLguy in forum Programming
    Replies: 3
    Last Post: 10-17-2010, 07:56 AM
  4. Default Date in Date Fields
    By rickn in forum Access
    Replies: 5
    Last Post: 04-14-2010, 01:30 PM
  5. Date Calculation within same fields
    By mslieder in forum Queries
    Replies: 3
    Last Post: 01-26-2006, 10:08 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