H
Haroon
hi
i have a textbox and date picker, when i select date on the calender, it
shows up on the textbox as 13/01/2009, however, i want to show only the year
in the textbox, e.g. 2009, i have assigned code to the textbox but it shows
2009 as 1905.
my textbox code is
Private Sub TextBox2_Change()
TextBox2.Text = Format(TextBox2.Text, "YYYY")
anyone knows what seems to be the problem and why it shows 2009 as 1905 in
the textbox?
cheers.
i have a textbox and date picker, when i select date on the calender, it
shows up on the textbox as 13/01/2009, however, i want to show only the year
in the textbox, e.g. 2009, i have assigned code to the textbox but it shows
2009 as 1905.
my textbox code is
Private Sub TextBox2_Change()
TextBox2.Text = Format(TextBox2.Text, "YYYY")
anyone knows what seems to be the problem and why it shows 2009 as 1905 in
the textbox?
cheers.