M
Matt D Francis
Hello,
I have a field ACTION_DT_TIME which stores a datetime value as follows
200605151507
=YYYYMMDDHHSS
I need to be able to pull out just the Month from this string, which I've
done with the following expression
ACTION_MONTH:
Format(DateSerial(Left([ACTION_DT_TM],4),Mid([ACTION_DT_TM],5,2),Mid([ACTION_DT_TM],7,2)),"Mmm")
which works in so far as it returns Janm, Feb, Mar etc
However I'm using this month field in a crosstab quary and the months are
sorted alphabetically rather than chronologically.
Apr Feb Jan Mar
Is there a way round this?
Cheers,
I have a field ACTION_DT_TIME which stores a datetime value as follows
200605151507
=YYYYMMDDHHSS
I need to be able to pull out just the Month from this string, which I've
done with the following expression
ACTION_MONTH:
Format(DateSerial(Left([ACTION_DT_TM],4),Mid([ACTION_DT_TM],5,2),Mid([ACTION_DT_TM],7,2)),"Mmm")
which works in so far as it returns Janm, Feb, Mar etc
However I'm using this month field in a crosstab quary and the months are
sorted alphabetically rather than chronologically.
Apr Feb Jan Mar
Is there a way round this?
Cheers,