The function I gave you will give you the last day of the month for any
date, regardless of whether it's December or January.
?DateSerial(Year(#2003-12-26#),Month(#2003-12-26#)+1, 0)
2003-12-31
?DateSerial(Year(#2004-12-26#),Month(#2004-12-26#)+1, 0)
2004-12-31
?DateSerial(Year(#2003-01-26#),Month(#2003-01-26#)+1, 0)
2003-01-31
?DateSerial(Year(#2004-01-26#),Month(#2004-01-26#)+1, 0)
2004-01-31

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Doug,
> I am trying to return the last day of the month..also the current year. As
[quoted text clipped - 25 lines]
> > >
> > > sDate1 = "01" & "/" & Format([txtdtEnd].Value + 30, "MMM") & "/" &
> > > Year([txtdtEnd].Value)
> > > dDate = CDate(sDate1) - 1
[quoted text clipped - 12 lines]
> > >
> > > End Function
Vincent - 31 Dec 2004 14:49 GMT
Thank you, Doug!
> The function I gave you will give you the last day of the month for any
> date, regardless of whether it's December or January.
[quoted text clipped - 58 lines]
> > > >
> > > > End Function