DateDiff - Do You See The Problem??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dryjeans
    New Member
    • Mar 2008
    • 24

    DateDiff - Do You See The Problem??

    Access chokes on this.....Anyone see the problem??
    Code:
    AgeInDays: DateDiff("d"[now()],[date recvd])
    Last edited by NeoPa; Jan 23 '09, 03:05 PM. Reason: Please use the [CODE] tags provided
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by dryjeans
    Access chokes on this.....Anyone see the problem??

    AgeInDays: DateDiff("d"[now()],[date recvd])
    Code:
     
    AgeInDays: DateDiff("d",Now(),[date recvd])

    Comment

    • dryjeans
      New Member
      • Mar 2008
      • 24

      #3
      THANKS, Mr Expert!!!!!!!!! !!!

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by dryjeans
        THANKS, Mr Expert!!!!!!!!! !!!
        You are quite welcome.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32668

          #5
          It's also highly inadvisable to use the Now() function when you really want the Date() function. Now() includes the time element as a fraction, so is not the same as a simple date.

          Comment

          Working...