I don't think the function is available in both Excel and Access. What the function returns? The last date of a given month, 28, 29, 30 or 31? If so, try the function below.
Function EndOfMonth(dte As Date) As Date
Dim MyDate As Date
MyDate = DateSerial(Year(dte), Month(dte) + 1, 1)...