Guest_imported
New member
- Jan 1, 1970
- 0
Im am trying to pass a date in the selectin formula as below;
Dim DteStart As String
Dim DteEnd As String
DteStart = Format(DTPStart.Value, "yyyy,mm,dd"
DteEnd = Format(DTPEnd.Value, "yyyy,mm,dd"
CrystalReport1.SelectionFormula = "{transactions.transaction_date} >= Date(" & DteStart & " AND {transactions.transaction_date} <= Date(" & DteEnd & ""
But I get an error 20515
Error in file c:\working\Reports\Statementtest.rpt:
Error in Formula <Record_Selection>.
'
'
The remaining text does not appear to be part of the formula
Can someone please help me with this ?
Dim DteStart As String
Dim DteEnd As String
DteStart = Format(DTPStart.Value, "yyyy,mm,dd"
DteEnd = Format(DTPEnd.Value, "yyyy,mm,dd"
CrystalReport1.SelectionFormula = "{transactions.transaction_date} >= Date(" & DteStart & " AND {transactions.transaction_date} <= Date(" & DteEnd & ""
But I get an error 20515
Error in file c:\working\Reports\Statementtest.rpt:
Error in Formula <Record_Selection>.
'
'
The remaining text does not appear to be part of the formula
Can someone please help me with this ?