Aug 26, 2003 #1 tziviak Technical User Joined Oct 10, 2002 Messages 128 Location 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 Joined Apr 1, 2002 Messages 670 Location 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 Joined Jun 24, 2003 Messages 22,561 Location 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