Crystal Reports is new to me so excuse the questions if they are simple. I am trying to pass a date parameter and get an error saying:
Invalid parameter field value
Here is the code:
strProcessDate = "08/20/02"
frmCreate.CrystalReport1.ReportFileName = "D:\NonDiff.rpt"
frmCreate.CrystalReport1.ParameterFields(0)
= "@ProcessDate; DATETIME(" & CDate(strProcessDate) & ",0,0,0);True"
frmCreate.CrystalReport1.Action = 1
frmCreate.CrystalReport1.PrintReport
What am I doing wrong. I looked at this site to find others having a similar problem and tried using the advice given to them, however, it is not working for me.
Thanks in advance
Don
Invalid parameter field value
Here is the code:
strProcessDate = "08/20/02"
frmCreate.CrystalReport1.ReportFileName = "D:\NonDiff.rpt"
frmCreate.CrystalReport1.ParameterFields(0)
= "@ProcessDate; DATETIME(" & CDate(strProcessDate) & ",0,0,0);True"
frmCreate.CrystalReport1.Action = 1
frmCreate.CrystalReport1.PrintReport
What am I doing wrong. I looked at this site to find others having a similar problem and tried using the advice given to them, however, it is not working for me.
Thanks in advance
Don