I have a form that when you hit a command button it moves the current year value (could be three years prior) to a previous year field. I need code to insert the current year in the current year field. I know this has to be simple but I just can't get it done.
Insert Current Year in a field from a form
Collapse
X
-
Originally posted by clloydI have a form that when you hit a command button it moves the current year value (could be three years prior) to a previous year field. I need code to insert the current year in the current year field. I know this has to be simple but I just can't get it done.
I got itCode:helpfield = DatePart("yyyy", Now())
Comment