
Problem passing date in selection formula
Here is the code I am passing to
Crystal Reports
CrystalReport1.SelectionFormula = "{POL_CONTR.ENT_TISTMP}>= _
'Date(" + ccyy + "," + mm + "," + dd + ")'"
Immediate window:
?crystalreport1.SelectionFormula
{POL_CONTR.ENT_TISTMP}>= 'Date(1999,01,01)'
And Crystal returns the following error message:
Error in formula <Record Selection>.
'
'
The remaining text does not appear to be part of the formula.
What am I doing wrong? I am sending this selection formula to
currently functioning crystal report. I have other option buttons
that call the same report sending a different non-date selection
formula that works just fine. Any ideas?