Help With Date

D

David Tunstall

Please help,

I have a form that uses the date add function to a
specified start date.

I.E Start Date = 26/01/2003
Months = 12
New Date = 26/01/2004

How can i make the new date show the last day of the
month that it calculates - i.e 31/01/2004

Thanks
David
 
R

Rick Brandt

David Tunstall said:
Please help,

I have a form that uses the date add function to a
specified start date.

I.E Start Date = 26/01/2003
Months = 12
New Date = 26/01/2004

How can i make the new date show the last day of the
month that it calculates - i.e 31/01/2004

NewDate = DateSerial(Year(OldDate)+1, Month(OldDate) + 1, 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top