Solved

Crystal Reports-display combined date/order number

Posted on 2009-07-15
3
288 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
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now