date-time problem
dear readers, here is problem that i m facing in vb6 and crystal report 9.1, and i want to get a report using date control but i m having problems when i run it, it gives an error i.e
The date-time is required, on the line where i used database and field. so how can i solve it plz help me , the code is given
Private sub form_load()
Dim report as new rptrecord
screen.mousepointer=vbHourGlass
cr.reportsource=report
report.recordselectionformula="{record.crdate}='" & _ frmsearch.dtform.value & "'"
cr.viewreport
screen.mousepointer=vbdefault
end sub.
thnx in advance
|