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!

Add a "-" in the middle of a string

Status
Not open for further replies.

cdulong

Technical User
Nov 18, 2008
80
CA
I need a formula that will add a "-" after the fourth character of a string, then add the remainder of the string after the "-".

Thanks,
 
mid({table.field},1,4) & '-' & mid({table.field},4)

-- Jason
"It's Just Ones and Zeros
 
OOPS...

mid({table.field},1,4) & '-' & mid({table.field},5)

-- Jason
"It's Just Ones and Zeros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top