Results 1 to 3 of 3
  1. #1
    Aimee is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    19

    Question How to log whether the dates between 2 fields >2 days apart

    I have a database which has 2 fields, 'date received' and 'date actioned'. I want to create another field which atomatically logs (yes or no) whether the date between the two is over 2 days.



    Can anyone tell me what the expression would be, and how I would go about this?

    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You do not need, nor should you have another field in the table. It would simply be a calculated field in a query of the table. Have you tried that yet?

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Quote Originally Posted by Aimee View Post
    I have a database which has 2 fields, 'date received' and 'date actioned'. I want to create another field which atomatically logs (yes or no) whether the date between the two is over 2 days.

    Can anyone tell me what the expression would be, and how I would go about this?

    Thank you
    Something like:
    Iif(DateDiff("d", [date received] , [date actioned])>2,True,False)
    But I would not save the result in a table. Calculations should not normally be saved.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. The period og days between two dates
    By roar58 in forum Queries
    Replies: 5
    Last Post: 10-06-2013, 11:58 AM
  2. Dates before 30 days
    By fabiobarreto10 in forum Queries
    Replies: 7
    Last Post: 04-20-2012, 12:11 PM
  3. Dates & Days Fields
    By djclntn in forum Database Design
    Replies: 5
    Last Post: 10-22-2011, 06:22 PM
  4. Replies: 4
    Last Post: 09-06-2011, 02:20 PM
  5. Select Dates between days and two days ago?
    By rstonehouse in forum Queries
    Replies: 4
    Last Post: 08-18-2010, 02:13 AM

Tags for this Thread

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