Aug 26, 2003 #1 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
Is there a function (as in microsoft excel) to check if a certain date is the last day of the month? thank you
Aug 26, 2003 #2 GoDawgs MIS Apr 1, 2002 670 US 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 Upvote 0 Downvote
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
Aug 26, 2003 #3 dhookom Programmer Jun 24, 2003 22,536 US Substitute a field or variable name for DateExpression: Month(DateExpression) <> Month(DateAdd("d",1,DateExpression)) Duane MS Access MVP Upvote 0 Downvote
Substitute a field or variable name for DateExpression: Month(DateExpression) <> Month(DateAdd("d",1,DateExpression)) Duane MS Access MVP