jazminecat
Programmer
Hi all --
I have the following code in the onload event of a form designed for data entry.
I'm getting a type mismatch. What i want is for the year field, which is a combo box, to default to the current year. Without the line above, it loads blank, which is fine, but it'd be nice if it had the year already entered for the user.
Thanks in advance!
I have the following code in the onload event of a form designed for data entry.
Code:
DoCmd.GoToRecord , , acNewRec
Me.Year = Right(CStr(Year(Now())), 2)
I'm getting a type mismatch. What i want is for the year field, which is a combo box, to default to the current year. Without the line above, it loads blank, which is fine, but it'd be nice if it had the year already entered for the user.
Thanks in advance!