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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create customized format for detail field + Truncate characters

Status
Not open for further replies.

mackinmn

Technical User
Mar 16, 2001
6
US
My subject line is asking two questions:

A particular field value is output to a report. An example of this value might be "01124134C" (no quotes). I would like to truncate the first 5 characters and format the remaining 4 characters so the above example would now appear as "13-4C" (again, no quotes)

I'll admit I'm relatively new to Access and am somewhat unfamiliar with the more advanced features. Any help or advice will be greatly appreciated.

John
 
If the field length is variable you can use this:

=MID([YourField],Len([YourField])-4,2)& "-" & RIGHT([YourField],2) Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top