Got this from a post by Allan Bunch (RuralGuy) on Access World Forums.
Public Function ReturnLastDateOfMonth() ReturnLastDateOfMonth = DateSerial(Year(#2/1/2008#), Month(#2/1/2008#) + 1, 0) End Function
Microsoft Access quick tutorials, code snippets, and more | Tel: +17738095456 Email: sales@itimpact.com
Got this from a post by Allan Bunch (RuralGuy) on Access World Forums.
Public Function ReturnLastDateOfMonth() ReturnLastDateOfMonth = DateSerial(Year(#2/1/2008#), Month(#2/1/2008#) + 1, 0) End Function