Hello, and welcome! First change your text box to contain text rather than a date, since we will only have part of the date in there.
-
Right click your text box and select properties
-
For Data Type, select Text(string)
-
Select the formula button next to the Value box in the Default Value section
-
Select Insert Function
-
Select substring-before (in the Text functions)
-
For the first field, put in the field with the date your want or the function today() for today's date
-
After the comma, put in "-"
Your final formula should look like this (if you are wanting the year for today's date):
substring-before(today(), "-")
Click OK until all dialogs close and open your form in preview to test.
The substring-before function takes all the characters in the first string (today() in our case) up to the first occurance of the character in the second string (the hyphen, for us). Since today() returns a date formatted as: "2008-07-16", taking everything before the first hyphen returns the year.
Let me know if you have trouble with this, okay?