Solved

Date ranges in crystal reports

Posted on 2000-03-14
6
173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

726 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