Hi All,
I have a date picker on a form together with a left and right arrow to reduce or increase the date picker date by 1 day.
< datePicker1 >
The issue is that the date picker will not increase past yesterdays date when using the arrows.
If you start out at today an increase the date with the right arrow - OK
Start at today and decrease the date with the left arrow - OK
Start at today, reduce the date to yesterday then try to increase the date - won't increase past yesterday.
I can use the date picker to select today again and increase the date past today - OK
The routine just sets datePicker1.ticks to the last date +/- the ticks in 1 day.
For some reason it gets stuck at yesterdays date when trying to increase.
Please see attached .zip with an example.
Any advise gratefully appreciated.
I have a date picker on a form together with a left and right arrow to reduce or increase the date picker date by 1 day.
< datePicker1 >
The issue is that the date picker will not increase past yesterdays date when using the arrows.
If you start out at today an increase the date with the right arrow - OK
Start at today and decrease the date with the left arrow - OK
Start at today, reduce the date to yesterday then try to increase the date - won't increase past yesterday.
I can use the date picker to select today again and increase the date past today - OK
The routine just sets datePicker1.ticks to the last date +/- the ticks in 1 day.
For some reason it gets stuck at yesterdays date when trying to increase.
Please see attached .zip with an example.
Any advise gratefully appreciated.