Splitting Values In A Field

paulS30berks

Registered User.
Local time
Today, 22:26
Joined
Jul 19, 2005
Messages
116
I have a field - Period in the format YYYYMM.

How can I split this value so that I only extract YYYY?

Thanks

P
 
Datepart function for a date, or Left function for a string.
 
If the value in that field is really a date then you can use the format function if you just want to change how it is viewed in a form or report.

Format([YourDateField],"YYYY")
 

Users who are viewing this thread

Back
Top Bottom