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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Range Param from VB

Status
Not open for further replies.

enigma333

Programmer
Jul 3, 2001
42
CA
I need to fill a Crystal Date Range Parameter from VB.

What is the syntax?


 
Which version/integration method are you using?
faq149-237 Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
VB/ Crystal 8.5 / Direct ... Problem is VB produces a DateTime not a Date ... using Datetime in the report resolves errors. I suppose the real question is how do i change a datetime to a date in VB .... Wrong section I suppose
 
You didn't tell me your integration method (API, OCX, RDC, AutoServer), but to answer your question generally, you should at the very least be able to extract the year, month and day, and then assemble them in the CR syntax for a literal date:

Date (yyyy,mm,dd) Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top