Solved

Date ranges in crystal reports

Posted on 2000-03-14
6
171 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 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