Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: report for a date range with only certain times Post Reply Post New Topic
Author Message
diveleyl
Newbie
Newbie
Avatar

Joined: 24 Sep 2012
Online Status: Offline
Posts: 1
Quote diveleyl Replybullet Topic: report for a date range with only certain times
    Posted: 25 Sep 2012 at 8:58am
I need a report where I can see all the times we went to a business during a year but only the times from 2am to 4:30am.
the date and time field combines the date and time so I dont know how to get the certain times only.
 
I cant build the report to get all of 2011 from times 2am to 4:30am  because that gives me jan1 at 2 am to jan 31 at 4:30. I only need each day of the year at 2am to 4:30am.
 
Hope this makes sense...  I am really new to crystal reports and i am not a programmer so I dont know much of the lingo.. so .... KISS....  :)
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Sep 2012 at 5:02am
write your select statmetn with 2 parts
1 for the data and the other for the time
 
year(table.date) = 2012 and time(table.date) in time(2,0,0) to time(4,30,0)
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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.063 seconds.