473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports XI - Date Range Parameter

1 New Member
Appreciate if you all can help me to solve my Crystal Report problems
First, I create some parameters and one of the parameters is Date. I set the parameter for the date is String.
For example :
parameter 1 - From Collection Date
parameter 2 - To Collection Date

I should display the results base on this selection criteria :
1) specific date - to enter specific date in FROM and TO field eg 20071227 to 20071227
2) greater or equal date - enter at FROM date field eg 20071227 to (null). System will display data with date 20071227 and greater.
3) less or equal date - enter at TO date field eg (null) to 20071227. System will display data with date less than until 20071227.
4) range of dates - to enter at FROM date field and TO date field eg 20071201 to 20071227. System will display data with date between 20071201 and 20071227.

I create a formula at Record Selection (Select Expert) as per below:

(If {?Collection Date} <> 'ALL' and {?To Collection Date} <> 'ALL' Then
ToText({CPS_DM0 5_VW.BATCH_DATE }) IN ToText({?Collec tion Date}) to ToText({?To Collection Date})
Else if {?Collection Date} <> 'ALL' and {?To Collection Date} = 'ALL' Then
ToText({CPS_DM0 5_VW.BATCH_DATE }) <= ToText({?Collec tion Date})
Else if {?To Collection Date} <> 'ALL' and {?Collection Date} = 'ALL'Then
ToText({CPS_DM0 5_VW.BATCH_DATE }) >= ToText({?To Collection Date})
Else
True)

The problem is...I cannot get the right data base on selection criteria for No. 2 and 3
I hope you can help me to solve this problem.
TQSM
Jan 2 '08 #1
0 3688

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1728
by: Scott Hatfield | last post by:
Hello, all. I'm a newbie to Python and am using it to interface with crystal reports via com/activex. I have had wonderful success thus far, but am unable to pass a parameter of type 'date.' I tried using a PyTime object, but it would not work for a date parameter. It *does* work for a datetime. I searched comp.lang.python and found one person who had this same problem (though not with crystal reports), but no replies were posted.
1
19182
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal Report at runtime? Example: private void button1_Click(object sender,
3
2617
by: Vivek | last post by:
Hi All, I am using .Net studio C sharp windows application (WinForm). Crystal reports r running fine.. I want to diplay report with conditions... Want to pass parameters to CR.. e.g. Start Date and End Date??? Thanx In Advance Vivek Kumbhojkar
0
1986
by: Tumurbaatar S. | last post by:
It's my first project using the Crystal report. I created a report with the report designer and linked it to a web form as: 1. put CrystalReportViewer in my page (its ID: Viewer). 2. put ReportDocument component from Toolbox | Components (its Name: Report) and specified my existing report class (myproject.import.reports.shiporder). 3. in DataBinding of above viewer, I choosed Simple binding and selected my report. 4. on Page_Load event...
0
2855
by: ZRexRider | last post by:
Hi, I've written reports based on stored procedures that receive parameters and it usually seems straight forward. Today I would like to use Crystal Reports parameter interface t prompt for a "Date Range" and then pass the lower and upper date values to the @StartDate and @EndDate of my SPROC's range. Unfortunately when I try to build a report off of a SPROC havng two
0
1057
by: David Brunton | last post by:
Welcome any feedback to the following dilemma.... I have two Crystal reports with the following Select Expert criteria...both interrogating the same DB.... 1) INDA="N", INDB="OP", INDC="Y", DATEA=?Date from parameter, DATEB=?Date to parameter 2) INDA="N", INDB="OP", INDD="Y", DATEC=?Date from parameter,
7
6718
by: Jlo | last post by:
Hi, I have a c# winforms application. When I call the report file, it shows me all the records in the table. How can I make it to call only a particular range. i have the following code Viewer1.ReportSource = Application.StartupPath + "//Label.rpt"; How can I assign it a dataset which have the data of a particular range.
0
1038
by: Raymond Luxury-Yacht | last post by:
I have a Crystal 11 Report which use the a dynamic cascading parameter. The report looks at a view I have within SQL Server 2000, however whichever field I have at the top of the parameter list seems to have some values missing. E.g. The Dynamic cascading parameter is Class >> Type >Category and instead of getting the 4 options of Class which I know are in the view, I only get 2. And if I swap it around so its Type >Class >Category then...
1
4745
by: annemariearmour | last post by:
I am using Crystal reports version 11.2 to create reports. The data source is SQL Server, and I am using views rather than reporting directly from tables. I apply selection criteria to the incoming records at record level and at group level. For example, I may select all bill lines with a receipt date within a certain date range. This results in a list of bill lines within that date range. The records are grouped and values on the records...
0
9595
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.