S
StuJol
I have a frm with 2 text boxes, startdate and enddate. The user enters the
dates, for example 01 April 2005 in the startdate field, and 31 March 2006 in
the end date filed. Exactly 1 year between them. When the system date comes
round to the end date + 1 day (01 April 2006) i want the year part of the
code to change to the next year, for example 01 April 2006 and 31 March 2007.
I've tried as many ways as i can think of but i havent been successful.
Please can someone help. Would it be better haveing 4 text boxes, 2 new ones
for the user to add dates to, for example 01 April and 31 March and leave the
startdate and enddate for the VBA code to write do.
These dates are used many times to filter several qrys.
I could just use a msgbox when the enddate = system date to inform user to
manually change the year but i sure they must be a way for code to do it
Thanks to anyone who looks into this
dates, for example 01 April 2005 in the startdate field, and 31 March 2006 in
the end date filed. Exactly 1 year between them. When the system date comes
round to the end date + 1 day (01 April 2006) i want the year part of the
code to change to the next year, for example 01 April 2006 and 31 March 2007.
I've tried as many ways as i can think of but i havent been successful.
Please can someone help. Would it be better haveing 4 text boxes, 2 new ones
for the user to add dates to, for example 01 April and 31 March and leave the
startdate and enddate for the VBA code to write do.
These dates are used many times to filter several qrys.
I could just use a msgbox when the enddate = system date to inform user to
manually change the year but i sure they must be a way for code to do it
Thanks to anyone who looks into this