Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hi,
    I have a control [txtDate] that the user enters the last day of the month for which they need a report. I need a formula to find the same date for the previous year (that also takes into account leap year). So if they enter 2/28/2009 the result from the formula would be 2/29/2008.

    Thanks,
    Alicia

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='Leesha' post='763953' date='06-Mar-2009 21:00'][/quote]
    Leesha,
    use : DateAdd("yyyy",-1,[txtDate])
    to find the exact date 1 year ago from [txtDate]
    Francois

  3. #3
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post
    PERFECT!!!

    Thanks!
    Leesha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •