Hi,
I have developed one crystal report in Visual report having group by one string datatype column. I want to sort this report by one datetime column. So i have set it in
VB.net code. Code Looks like this.
If Not sortBy.Contains("GroupByDeliverDate") Then
_fieldDef = report.Database.Tables.Item("PharmacyCost").Fields.Item("DeliveredDate")
report.DataDefinition.SortFields(j).Field = _fieldDef
j += 1
End If
While generating the report, it throws error on above mention line saying"".
"The group options for a date, time or date-time condition field must be a date group options object."
Does anyone have any idea about the error. Please give me some resolution to fix the error.