|
You'll find that people on forums are unhappy to hold your hand too much on problems as essentially simple as this one. Generally speaking what you want to do is:
In the Click event handler of the submit button, get the value of the .Text property of the text box control. Now you have to parse it to interpret the date - so you need to be quite sure of the format it'll be entered in (you'd probably find it easier to restrict that format by allowing the user to choose from drop-down lists for day, month and year rather than allowing free entry into your text box).
Next up you want today's date, which is the other piece of information your program will need. It can determine that for itself and then you want to get both dates into a comparable format and compare them to see how many years apart they are.
I'm not going to hold your hand through the whole process, but if you have any other specific questions ask away - but check online and check the documentation before asking a person. Computers' time is worth a lot less than peoples' time, so Google before you post! Virtually everything a beginning VB programmer needs to know is out there on the web.
__________________
"I'm not a genius. Why do I have to suffer?"
|