increment the month and year in a date by one

Joined
Oct 12, 2007
Messages
1
Reaction score
0
I would like to put 3 command buttons and a textbox on a form. When the user click one button the day part of the date increment by 1. When they click the others the month and the year increnent by 1. I get the day part but cannot figure out how to increment the month and the year.

This is what I use to increment the day

newDay = newDay+1

newDay is the name of the text box with the date

Thanks for the help
 

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