Hi! This problem is driving me crazy,
I'm trying to pass a date parameter into a report through VB. My Code is as follows
With CrystalReport1
.ReportTitle = frmMain.strRptName
.ReportFileName = App.Path & "\test.rpt"
.ParameterFields(0) = "fromDate;" & txtDateFrom.Text & ";true"
.ParameterFields(1) = "toDate;" & txtDateTo.Text & ";true"
.Action = 1
End With
I have creatd fromDate and toDate Parameters within the report.
Everytime I try to run the application, I get an "Invalid Parameter field value" error. I have tried all possible sceanarios that I know of, even formatting the date (format(cdate(txtDateTo.txt), "dd-mm-yyyy")) but I get the same error.
Can someone please help, I will be eternally grateful.
Regards,
Karim
I'm trying to pass a date parameter into a report through VB. My Code is as follows
With CrystalReport1
.ReportTitle = frmMain.strRptName
.ReportFileName = App.Path & "\test.rpt"
.ParameterFields(0) = "fromDate;" & txtDateFrom.Text & ";true"
.ParameterFields(1) = "toDate;" & txtDateTo.Text & ";true"
.Action = 1
End With
I have creatd fromDate and toDate Parameters within the report.
Everytime I try to run the application, I get an "Invalid Parameter field value" error. I have tried all possible sceanarios that I know of, even formatting the date (format(cdate(txtDateTo.txt), "dd-mm-yyyy")) but I get the same error.
Can someone please help, I will be eternally grateful.
Regards,
Karim