Question : Crystal Reports XI - Isnull Formula

Hello

I would like my report to display the following based on the below database information. If the actual achievement date is null then I would like the value to be blank in the report rather than display the value in the database which is 0.

I've tried using the following code but it does not seem to work.

If isnull({L_FUNDING.DateClaim})
then ""
else
totext({L_FUNDING.Units},0)

Report <-- Below is how I would like the report to be displayed based on the below database information.
----------------------
Milestone No         Expected Achievement Date   Actual Achievement Date      Value
     1            01/11/2006                             09/26/2006            368
     2            04/25/2006              09/26/2006            368
     3            05/10/2007                              
     4            07/10/2007                              

Database
---------------------
Milestone No         Expected Achievement Date   Acutal Achievement Date      Value
     1            01/11/2006                            09/26/2006                      368
     2            04/25/2006             09/26/2006                         368
     3            05/10/2007                        0
     4            07/10/2007                        0


Thanks

Answer : Crystal Reports XI - Isnull Formula

OK... I think I see what you mean now. In your original post, the 0s appeared in the date column on my screen.

You are trying to get the Units column to show zero if the date is empty - is that right?
So Actual Achievement Date   is held in DateClaim?

In that case I too would expect your formula to work.

Have you switched on the option to convert null database values to defaults? That would probably mess this formula up.

 
Random Solutions  
 
programming4us programming4us