Solved

Crystal Reports-display combined date/order number

Posted on 2009-07-15
3
293 Views
Last Modified: 2013-11-15
I am trying to display a field which combines an order-number and an order date.  That is easy enough, using a formula to combine them.  However the problem is that, before combining them, I want to change the date (which is in DATE-TIME format) to just date (i.e. mm/dd/yy).  After changing it, I want to combine the date-only field with the order number for the report field.  i have been trying all kinds of things with no luck.
Your help is appreciated!!
0
Comment
Question by:mbroad02
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Assisted Solution

by:UnifiedIS
UnifiedIS earned 100 total points
ID: 24860558
This will create the date as a string:
CSTR(MONTH({Command.t_invd}), 0) + "/" + CSTR(DAY({Command.t_invd}), 0) + "/" + RIGHT(CSTR(YEAR({Command.t_invd}),0), 2)
Just add the order number and change out my date field for yours

OR

Create a text box and drop your date field and order number field in it (separated by a space).  Then you can format the date field to your mm/dd/yy format.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 400 total points
ID: 24860577
if ordernumber is number then you can do..

Totext({table.OrderNumber},0,"") & Totext({table.OrderDate},"MM/dd/yy")
0
 

Author Closing Comment

by:mbroad02
ID: 31603786
The ToText formula worked perfectly!!  thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
How to increase the row limit in Jasper Server.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question