Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing DateTime parameter from VB.

Status
Not open for further replies.

nag999

Programmer
Apr 16, 2003
33
IN
Hi All,

I am facing a strange problem in passing DateTime() parameter from VB. I had written the following code to pass DateTime Parameter in crystal.

.ParameterFields(4) = "Contract Status As of Date;DateTime(" & strYear & "," & strMonth & "," & strDay & ",0,0,0);True"

It is giving me "Invalid Parameter field Value" Error.

Thanks,
Nagaraj
 
Hi Synapsevampire,

I am using the OCX. I had a stored procedure, which has date parameter to accept. On attaching the stored procedure to the report, It created a parameter of type DateTime in Report. When I am passing DataTime parameter from VB to crystal it is giving me error.

After going thru the below Knowledge base from Crystal,I feel that it is not possible to send the DateTime value from VB to Crystal.



Btw. Still You feel any other workaround other than above article is really helpfull.

Thanks once again

Regards,
Nagaraj
 
please use RAS . Your problem will resolve.

RAS : Report Automation Server

----------------------------------
[daftywork : work 4 everyone.]
>>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top