Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Apr 2002
    Location
    Burlington, Washington, USA
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    End of Month (2000)

    I am looking to create an access function that is simular to the excel function called eomonth. I am looking return a date value for end of the month, based on another column. Here is an example of what I need. If column A shows 2/3/05, column B should return 2/28/05.

    Thanks,
    Larry

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

    Re: End of Month (2000)

    Say that your date field is named MyDate. The following expression will return the last day of the month containing MyDate:

    DateSerial(Year([MyDate]),Month([MyDate])+1,0)

    This expression calculates the 0th day of the next month; this is equivalent to the last day of the current month.

  3. #3
    Lounger
    Join Date
    Apr 2002
    Location
    Burlington, Washington, USA
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: End of Month (2000)

    Hans,

    Thank you very much. It works!

    Larry

Posting Permissions

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