Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2006, 10:46 PM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to denishrt
Default Problem with Date in Crystal Report

following is the coding which i am using to see the report between two days of user's choice. Problem is that if i enter the date 10/10/2005 and 10/12/2005 it should show the reports for the records between those two days. Buuuut, it is showing almost all records. i.e data is not getting filtered.

'--------------------------------------------------------------
Dim Fltr

    report.ReportFileName = App.Path & "\SampleReport.rpt"
Fltr = "{Rep.E_Date}>='" & Trim(Text1.Text) & "' and {Rep.E_Date} _
< = '" & Trim(Text2.Text) & "'"
     report.Formulas(0) = "abc='" & Trim("Report between date") & "'"

     report.ReplaceSelectionFormula (Fltr)

     report.WindowState = crptMaximized
     report.Action = True
'------------------------------------------------------
Rep is a table name
E-Date is a field name


may be there is a problem with SQL query written for date
i need help to solve this problem
thanks in advance





Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report date format gfredrick85 Crystal Reports 1 March 3rd, 2008 03:47 PM
Crystal report problem (another) julenis C# 0 April 19th, 2006 02:19 AM
Data report & date problem ratheeshpkr BOOK: Beginning Access VBA 0 April 6th, 2005 08:02 AM
Crystal Report Date Format comlinearun Crystal Reports 2 May 4th, 2004 06:00 AM
Crystal 8.5 - missing or out-of-date report DLL petitpal Pro VB 6 1 December 8th, 2003 12:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.