>>Thank you Gerald for your suggestion.
>>
>>
thisform.oleControl1.Object.value = gomonth(datetime(),12)
>>
>>This worked only for moving to the next year, and subsequent clicks on the >> buton did not move the date by another 12 months.
>>
>>- Ravi
>
>Of course, the sample use the current datetime and jump 12 months in the future, use the current value of the control instead.
>
>thisform.oleControl1.Object.value = gomonth(thisform.oleControl1.Object.value,12)
>
>:-)
Did it Gerald. Thanks much :)
- Ravi
- Ravi
True greatness consists in being great in little things.
- Charles Simmons