Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Filter report to include only Night Shift records Post Reply Post New Topic
Author Message
ajaybc
Newbie
Newbie


Joined: 23 Jul 2009
Location: India
Online Status: Offline
Posts: 1
Quote ajaybc Replybullet Topic: Filter report to include only Night Shift records
    Posted: 23 Jul 2009 at 11:20pm
I am new at crystal reports XI and
Need some help in setting up a report for the night shift

I need to filter my report which shows work done in the night shift which is from 19:00:00 to 05:00:00 (Next day)

i.e Suppose for Start Date 23/07/09 - report would show records from 19:00 to 23:59 for the date 23rd and 00:00 to 05:00 for date 24/07/09

Parameters i can work with is Start date and start time

Kindly please help....

Regards,

Ajay
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 24 Jul 2009 at 6:40am
if you are joining to the tables directly, in the report/selection formulas/record, you would want to add something like:
 
{table.datetime} in {?datestart} + {?starttime} to dateadd(d,1,{?datestart})+dateadd(h,10,{?starttime})
 
I think that this should work.  I haven't tried it. 
 
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.016 seconds.