Net 2010 to run crystal reports 11 and I am getting This field name not found error when I use any table value in the formula field. I am trying to check a date field isNull or not and then picking the non null value from the database/view field. If I build as a report in Crystal Reports 11 stand alone it works. But with CrystalReportViewer in VB .Net 2010 I am getting this error. This field name is not known.Error in formula ..... Details: errorKind
This is my Vb code inside the formula section.
Dim x as date
If {@PI} = "PI" Then
x = DateValue({VIEW_GROUP_TOTALS.CH_PI_OPEN_DATE})
else
If IsNull({VIEW_GROUP_TOTALS.CH_OPEN_DATE}) Then
x = DateValue({VIEW_GROUP_TOTALS.CH_PI_OPEN_DATE})
else
x = DateValue({VIEW_GROUP_TOTALS.CH_OPEN_DATE})
End If
End If
formula = x
Basically I cannot get any field value inside the formula section. Any help is much appreciated.
Thank you, Ravin ![enter image description here][1]