jjoy123123
Programmer
I'm trying to pass a date parameter from VB6 to Crystal 8.0. The text parameter is working, but I can not get the date to pass. Any suggestions? Here's my code:
With CrystalReport1
.ReportFileName = App.Path & "\PatientReport.rpt"
.ParameterFields(0) = "Name;" & txtName.Text & ";True"
.ParameterFields(1) = "DOB;" & CDate(txtDOB.Text) & ";True"
.PrintReport
End With
With CrystalReport1
.ReportFileName = App.Path & "\PatientReport.rpt"
.ParameterFields(0) = "Name;" & txtName.Text & ";True"
.ParameterFields(1) = "DOB;" & CDate(txtDOB.Text) & ";True"
.PrintReport
End With