hi there
i'm using sql server as database and crystal report 7. i try using produce report by web using asp code. for string selection record it ok.but while i'll change the code for date field it will appear some error?
Error in formula <Record Selection>.'{stock.date_stk}='31/12/2003" A date-time is required here.
my code like :
value = "31/12/2003"
SelectionFormulaValue = "{stock.date}='"&cstr(value)&"'"
Session("oRpt".DiscardSavedData
Session("oRpt".RecordSelectionFormula = cstr(SelectionFormulaValue)
' actually i want user just key date on value than report data will be display on date selection.
'if you have any idea or sample code it's will be appreciate
thanks
i'm using sql server as database and crystal report 7. i try using produce report by web using asp code. for string selection record it ok.but while i'll change the code for date field it will appear some error?
Error in formula <Record Selection>.'{stock.date_stk}='31/12/2003" A date-time is required here.
my code like :
value = "31/12/2003"
SelectionFormulaValue = "{stock.date}='"&cstr(value)&"'"
Session("oRpt".DiscardSavedData
Session("oRpt".RecordSelectionFormula = cstr(SelectionFormulaValue)
' actually i want user just key date on value than report data will be display on date selection.
'if you have any idea or sample code it's will be appreciate
thanks