Results 1 to 4 of 4
  1. #1
    ker9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    5

    Date Add 26 weeks minus 1 day

    Hi,
    I need to add 26 weeks to a date and then subtract 1 day from it:

    This adds 26 weeks but I'm at a total loss as to how to subtract 1 day from it. Can it be done in one formula? (I can do it in a 2nd formula referencing this, but would love to get it into one formula.)

    Code:
     
    (DateAdd("ww",26,[dte]))
    Thank you.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try: (DateAdd("ww",26,[dte])-1)

  3. #3
    ker9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    5
    Thank you - clearly I was way over thinking this

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe a better understanding of the DateTime field would be helpful for the future. http://support.microsoft.com/kb/q130514/en-us

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

Similar Threads

  1. Replies: 5
    Last Post: 06-30-2011, 02:24 AM
  2. Group Result by weeks
    By Grooz13 in forum Queries
    Replies: 2
    Last Post: 09-14-2010, 07:09 AM
  3. Replies: 1
    Last Post: 04-15-2010, 02:07 AM
  4. Date Parameter Help - prior 13 weeks
    By acw1980 in forum Access
    Replies: 1
    Last Post: 11-12-2009, 10:30 AM
  5. How to calculate number of weeks
    By FeatherDust in forum Queries
    Replies: 0
    Last Post: 09-18-2009, 02:50 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