Passing a date parameter in crystal report

michaelrawi

Member
Joined
Jul 24, 2006
Messages
15
Location
Surabaya, East Java, Indonesia
Hi,

I have a date parameter on my report, but I cant pass it from VB2005

Heres my code:
Code:
Dim Param As CrystalDecisions.Shared.ParameterField
Dim myDiscreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue
Param = crViewer.ParameterFieldInfo("pDate")
myDiscreteValue.Value = dateParam.dtSelect.Value.Date
Param.CurrentValues.Add(myDiscreteValue)

This didnt work. The date parameter in my report screwed up. Can someone give me solution?

Also, how can I pass parameter that have multiple values ?

Thanks in advance.
 
Back
Top