SidLancing
Programmer
I have a date field named OrderDate in a form. I have this vba code to get the just the year.
In the table the field is defined as a Date/Time Datatype and the default value is =Date()
Can anyone help with getting the year to be 04 instead of 2004
Thanks in advance.
Code:
Cur_YR = DatePart("yyyy", [OrderDate])
Can anyone help with getting the year to be 04 instead of 2004
Thanks in advance.