Hi,
I am having a strange problem in Crystal report 2008. Earlier I was using VS 2005 Crystal report. Then we purchased Crystal report 2008.
When I opened the VS 2005 projects it asked reports to convert into Crystal report 2008. I did that.
Earlier I was using the following syntax for passing the date as selectionFormula
Dim selectionFormula As String = "{tblClient.Name} = '" & ddlClient.SelectedItem.Tex
t & "' and {TBILL_File_Format.Week Ending Date} = #" _& Convert.ToDateTime(DtCtrlP
roDateFrom
.DateTimeV
alue) & "# WeeklyReportByClientNameRe
port.DataD
efinition.
RecordSele
ctionFormu
la = selectionFormula
But now when I run this same it says
This field name is not known. Details: errorkind Error in the file rptWeeklyReport.rpt: Error in formula Record_selection:
{tblClient.Name} = 'ABC10' and "{TBILL_File_Format.Week Ending Date} = #04/20/2008# This field name is not known. Details: errorkind
I have no idea about this
Even If I tried to pass as follows
selectionFormula = "{TBILL_File_Format.Week Ending Date} = DateTime (2008, 04, 25, 00, 00, 00) and {TBILL_File_Format.Client Code} = 'ABC10' "
I couldn't see any record on the report except Grouptree of the report. If I export the report it has all the data as I expected.
Please help me out on this regards.
Thanks in advance
Saravanan
Start Free Trial