are you sure that is the name of the textbox you created?
When you click on the textbox you want the value of, and you check in the properties page. For the "Name" item, is it "txtYears" ?
The "Caption" property is not the important one here btw
Welcome to TechIMO