View Full Version : date manipulation- question


Boyan
04-15-2002, 01:09 AM
Problem: how to make calculated control which calculates "first_day_of_previous_month", based on [today]?

and

"last_day_of_previous_month", based on same pre-entered date?

(On the same form)

thanks!

B.

Geoff Codd
04-15-2002, 02:28 AM
I use this to convert the entered date to the last day of the month you should be able to play with this to get what you want

Me![End of Month Billing Date] = DateAdd("d", -1, Format("01/" & Format(DateAdd("m", 1, Me![End of Month Billing Date]), "mm/yy"), "dd/mm/yy"))

Pat Hartman
04-15-2002, 07:37 PM
Take a look at this article in the Microsoft knowledge base (there are several more, you can find by searching).

Q88657 - ACC Functions for Calculating and Displaying Date-Time Values