Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: converting to xx/xx/xxxx Post Reply Post New Topic
Author Message
ssweeney
Newbie
Newbie


Joined: 17 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote ssweeney Replybullet Topic: converting to xx/xx/xxxx
    Posted: 22 Aug 2007 at 6:21am
I have a number field that could be 32300 or 10200 and i would like to print out to look like 3/23/00 or 10/2/00.
 
Suggestions?
 
I did try using picture (field,"xx/xx/xx") but didnt work because the fields can be different length
IP IP Logged
yggdrasil
Senior Member
Senior Member
Avatar

Joined: 19 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 150
Quote yggdrasil Replybullet Posted: 22 Aug 2007 at 7:20am
Is this representing a date?  If so, I can't see how you can tell if a month or day has two figures or one.  Is it possible to put the number into 8 digits so you can transform it into standard international format of yyyy/mm/dd ?
IP IP Logged
ssweeney
Newbie
Newbie


Joined: 17 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote ssweeney Replybullet Posted: 22 Aug 2007 at 8:45am
i had to pull data from a database into access and when i try to change the date formula it changes the numbers completly.  I cannot pull the data into crystal report so i have to use the access as a middle man.  the data is in a form of an alias which crystal report doesnt like.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 22 Aug 2007 at 10:09am
You're going to have to do what ssweeney recommended. When bringing the data from the database into Access, you have to force the format to be 8 characters. I think the problem is that you have the data type in Access as a number and this gets rid of the leading zero. If you format it as a string then it should keep the leading zeros.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
ssweeney
Newbie
Newbie


Joined: 17 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote ssweeney Replybullet Posted: 22 Aug 2007 at 10:32am
not sure how to force it, which i understand since i had to do that with excel, when i am using odbc connecting to another database in another building.
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.029 seconds.