Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Data Split Post Reply Post New Topic
Author Message
jgarner
Senior Member
Senior Member


Joined: 23 Jan 2009
Location: United States
Online Status: Offline
Posts: 159
Quote jgarner Replybullet Topic: Data Split
     Posted: 07 Sep 2010 at 8:00am

CR 2008; I need help splitting a data field which looks like this:

009AMO141997724507
 
I would like it to be split like this:
 
009 AMO 1419 9772 4507
 
Although these figures do change, there are always the same amount in the same configuration.
 
It could be split by spacing or split into separate fields.
 
Thanks.
IP IP Logged
jgarner
Senior Member
Senior Member


Joined: 23 Jan 2009
Location: United States
Online Status: Offline
Posts: 159
Quote jgarner Replybullet Posted: 07 Sep 2010 at 8:33am

Sorry, this was answered in a previous post.

 
left({table.field},3) + '-'+ mid({table.field},4,3)+'-'+
mid({table.field},7,4)+'-'+ mid({table.field},11,4)+'-'+ right({table.field},4)
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum