Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

endOfMonth function

Status
Not open for further replies.

tziviak

Technical User
Oct 10, 2002
128
US
Is there a function (as in microsoft excel) to check if a certain date is the last day of the month?
thank you
 
Nothing specific...I've always used:

EOM: CDate(Month([DateField]) & "/1/" & Year([DateField]))-1

That's to show the EOM date...you can use it to compare to a date as well if needed. Hope that helps.

Kevin
 
Substitute a field or variable name for DateExpression:
Month(DateExpression) <> Month(DateAdd(&quot;d&quot;,1,DateExpression))

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top