Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports .NET 2003
:
Report Design
Topic: RecordSelectionFormula for 24 hrs. data
Oldest Post First
Newest Post First
Author
Message
umesh.chape
Newbie
Joined: 12 May 2011
Online Status: Offline
Posts: 11
Topic: RecordSelectionFormula for 24 hrs. data
Posted: 07 Jun 2011 at 11:18pm
Hi All,
I Generated report to show data of last 24 hours .
I am using below RecordSelectionFormula ,
rpt.RecordSelectionFormula = "cdate({tbDoc.ArrivalDate})=CDate('" + 2011-06-07 + "') and CTime({tbDoc.ArrivalTime})>= CTime('" + 9:00 PM+ "') or cdate({tbDoc.ArrivalDate})=CDate('" + 2011-06-08 + "') and CTime({tbDocumentDetails.ArrivalTime})>= CTime('" + 9:00 PM+ "')"
But it reocrd time is 12:00 Am for date 2011-06-08 then it is not showing the reocrd..
Please help me .
Edited by umesh.chape - 07 Jun 2011 at 11:33pm
IP Logged
Dewald
Groupie
Joined: 02 Jun 2011
Location: South Africa
Online Status: Offline
Posts: 47
Posted: 07 Jun 2011 at 11:59pm
you could try cdatetime(ArrivalDate & ' ' & ArrivalTime) >= dateadd ("h",-24,currentdatetime)
Dewald Botha
http://www.ITClarity.co.za
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
This page was generated in 0.016 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.