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 date parameter from VB

Status
Not open for further replies.

smalley

Programmer
Feb 8, 2001
17
US
I am using CR 8.0.1 and VB 6. I have created a parameter in my report of type date/time. I want to pass a date from a variable of type date. If I pass a literal it works fine but I cannot use the variable. I have tried to pass a date and a string. The format that I am passing is: yyyy-mm-dd. I get a type mismatch error.
Thanks for the help.
 
I believe that you should pass it as a string from VB, define it as Date or Date/Time as the parameter in Crystal.

If you're using a Date variable in VB, use CStr() to convert it.
 
I have tried to pass it as a string and a date and neither work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top