Because February can have a different length every four years, I think you
should also specify the year.
Public Function Days2EOM(dteDate As Date) As Integer
'Calculates the number of days till the end of the specified month
Days2EOM = DateDiff("d", dteDate, DateSerial(Year(dteDate),
Month(dteDate) + 1, 0))
End Function
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia