How to return the year

nancy54

Registered User.
Local time
Today, 06:46
Joined
Jun 19, 2018
Messages
49
I have a table with a TimeStamp field (the system Date()), and another field for the system autonumber ID. Using Right functions on both fields I have created a calculated field to return a year prefix and the last 3 digits of the ID. The problem is, instead of getting 18 (for the year), I am getting AM or PM. I have set the format to Short time, but still returns AM or PM.

Thanks in advance!
Nancy
 
Thanks 26,
This did not work within the Right function...so I had to create another field (I called SystemYear) using Year(Date()) and concatenated that field with the ID field to get the an ID with a date prefix.
 

Users who are viewing this thread

Back
Top Bottom