以下是引用AlexLiu在2002-11-6 15:35:03的发言:
Public Function MonLastDay1(dFirst As Date) As Date
MonLastDay1 = DateSerial(Year(dFirst), Month(dFirst) + 1, 1) - 1
End Function
效果类似,不过更简单一些,同样适用于任何一个月。
DateSerial(2002,15,1) = 2002-3-1
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |