Kind of past tense, but maybe Gregro needs a specific answer to finding the last day of the previous month.
Dec 04, 2002 - Microsoft Knowledge Base Article – 210604
ACC2000: Functions for Calculating and Displaying Date/Time Values
Displaying Specific Dates
To display specific dates, you can use the DateSerial() function to manipulate the day, month, and year portions of a date. For example, you can use the following expressions in the ControlSource property of a text box or in the Immediate window to return specific dates:
· The last day of the previous month:
DateSerial(Year(Date()), Month(Date()),0)
AND, FOR FUTURE REFERENCE:
· The current month:
DateSerial(Year(Date()), Month(Date()), 1)
· The next month:
DateSerial(Year(Date()), Month(Date()) + 1, 1)
· The last day of the current month:
DateSerial(Year(Date()), Month(Date()) + 1, 0)
· The last day of the next month:
DateSerial(Year(Date()), Month(Date()) + 2, 0)
· The first day of the previous month:
DateSerial(Year(Date()), Month(Date())-1,1)
· The first day of the current quarter:
DateSerial(Year(Date()), Int((Month(Date()) - 1) / 3) * 3 + 1, 1)
· The last day of the current quarter:
DateSerial(Year(Date()), Int((Month(Date()) - 1) / 3) * 3 + 4, 0)
· The first day of the current week (assuming Sunday = day 1):
Date() - WeekDay(Date()) + 1
· The last day of the current week:
Date() - WeekDay(Date()) + 7
· The first day of the current week (using settings in Options dialog box):
Date() - WeekDay(Date(), 0) + 1
· The last day of the current week:
Date() - WeekDay(Date(), 0) + 7