Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2003, 05:39 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Dhodie
Default


Right click on the Formula then click on Format Field.
Format Editor window will be shown and from the Date/Time Tab
choose your desired date format. It is assumed that your formula
field is a Date/Time type.


-Dhodie
 
Old October 15th, 2003, 05:50 AM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know it can be done if the field is database field.
But for formula field, it doesn't provide the Date/ Time format.


 
Old October 15th, 2003, 11:41 AM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this:

If IsNull({WOS.Date_Sum}) Then
   "-"
Else
  ToText({WOS.Date_Sum}, 'dd/MM/yyyy')

Result value should be = eg. 18/08/2001

HTH
Akhtar

 
Old October 15th, 2003, 07:44 PM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Akhtar,

Thanks.
Have a blessed day.

Rgds,


 
Old October 16th, 2003, 03:25 AM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi! I would like to do case statement in the formula.
How to use the "select case : default: "?

Case "A"
formula = "CaseA"

Case "B"
formula = "CaseB"

Case "C"
formula = "CaseC"

.
.
.
etc...

Please Help.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with formula Juan0214 Access 4 August 1st, 2008 07:25 AM
Formula scandalous Access VBA 11 February 27th, 2007 09:49 AM
formula sinha Crystal Reports 1 October 26th, 2005 12:53 PM
Help with a formula Corey Access 2 October 20th, 2005 10:48 AM
Formula Ned Pro VB 6 2 September 10th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.