I have a simple Crystal report (v9) that takes a single parameter of type time. We are calling the report using the RDC component, but we get a Type Mismatch error when using the following code:
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00"))
-- also used the following variations with the same result:
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00 AM"))
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00AM"))
Call parameterFieldsCollection(1).AddCurrentValue(CString("11:00:00"))
Other data types work fine. Am I doing something wrong here?
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00"))
-- also used the following variations with the same result:
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00 AM"))
Call parameterFieldsCollection(1).AddCurrentValue(CTime("11:00:00AM"))
Call parameterFieldsCollection(1).AddCurrentValue(CString("11:00:00"))
Other data types work fine. Am I doing something wrong here?