Solved

Date ranges in crystal reports

Posted on 2000-03-14
6
172 Views
Last Modified: 2010-05-02
Hi,

  I would like to know if is there any body outside that knows how to insert a VB 5.0 Date variable into a report in crystal report 5.0.

   Example.

   I have a Variable called IniDate defined as date and taking a value from keyboard, how ca i do to insert IniDate into my report.

Thanks
0
Comment
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Voodooman
ID: 2616837
I'm not to clear what you are trying to do here as I use newer versions of CR.

In newer versions you can create a parameter field within the developer.

You can then post the value to the parameter using Report.Parameters(0)=mydate.

If Ver 5 does not have a Parameter Field the only thing you can do is replace the report title and append the date to it i.e. Report.Reporttitle=Report.ReportTitle & " " format$(mydate,"mm/dd/yy") or whatever date format you want


Voodooman


0
 
LVL 12

Author Comment

by:Alfredo Luis Torres Serrano
ID: 2616976
My crystal report version does not have report.reporttitle propertie, can i download a newer version?, where?
0
 

Accepted Solution

by:
AshokKumar earned 40 total points
ID: 2619148
Create a formula in Report (say datVBDate) and place it whereever u need the date to be displayed. After getting the value for the iniDate in VB just pass this value to the formula.
Pass it like this

Crystalreport1.formulas(0)='" datVBDate= "' & iniDate

Thus, your formula now will contain the value of iniDate abd will be displayed in the report. Take care for the slightest syntax errors. Otherwise, positively this is the solution. We have done this all the time. Get back to me.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 12

Author Comment

by:Alfredo Luis Torres Serrano
ID: 2619440
That's the right answer thanks
0
 

Expert Comment

by:AshokKumar
ID: 2619479
Wecome Masterco. Just between pals.
0
 
LVL 12

Author Comment

by:Alfredo Luis Torres Serrano
ID: 2620055
I am gettin a Invalid Formula Name Error What i am doing Wrong?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question