Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tranaslate access # field to words

Status
Not open for further replies.

Duchess1

Technical User
Mar 21, 2003
1
CA
I have an access data field of number long that I would like to transalate. The values in the fields are 6 characters. I want the last 2 character to translate to a month text. Example 200203 would return 2002 March or 200301 would return 2003 January.
Thanks
 
To grab/translate the month:
Monthname(CDbl(mid(totext(200302),6,2) ))

to grab the year: mid(CStr(2003),1,4)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top