7 Replies Latest reply: Nov 15, 2011 4:10 PM by Sastry Duvvuri RSS

Crystal Report Display String formula error

Adil Akram
Currently Being Moderated

I've written following formula in Display String of a field, the field has value Name or Date dynamically.

 

if IsDate(CurrentFieldValue) then
    ToText(CDate(CurrentFieldValue), "dd MMM yyyy")
else
    CStr(CurrentFieldValue)

 

Following is the error I get only when field gets date value

 

Error in formula  <Display_String>.

'if IsDate(CurrentFieldValue) then

'

A string is required here.

Actions