Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Aug 2002
    Location
    New Jersey, USA
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    calculate first day of next year (97 v2)

    Hello again,
    I need to append the first day of the next year to a record. I thought about using Date Serial but I can't seem to get it right. Does anyone have any idea on how to do this. It will always be 01/01/xx, but the query can be run at any time during the year. If they run it in March or December or whenever I still want the date to be 01/01/xx. XX is current year + 1

    Cathy

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: calculate first day of next year (97 v2)

    Try the expression
    <code>
    DateSerial(Year(Date())+1,1,1)
    </code>
    Date() is always the current date, Year(Date()) is the year of the current date. We add 1 to this year, and specify 1 for the month and day.

  3. #3
    2 Star Lounger
    Join Date
    Aug 2002
    Location
    New Jersey, USA
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: calculate first day of next year (97 v2)

    Thank you so very much. You are the best. I would be lost without this site.... Keep up the great work!!!!

Posting Permissions

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