Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Evaluate record on field change Post Reply Post New Topic
Author Message
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Topic: Evaluate record on field change
    Posted: 26 Oct 2011 at 7:33am
Hi,
 
I have a report with ID and date/time of service
sorted by Date/time of service , ID
Most ID's will have two records with the same "date" different times and AM and a PM
Some will have one record an AM or a PM
I want to display the second record with an X in an AM column if they have an AM time and an X in a PM coulmn if they have a PM time and if they only have one record then display the X in which ever time it fall into..
 
Thanks in Advance
 
 Joe
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Oct 2011 at 7:51am
two formuals placed in their respective column loactions
 
//am
if next(table.id) = table.id or time(table.datetime) in time(12,0,0) to time(23,59,59) then "" else"X"
 
//pm
if next(table.id) = table.id or time(table.datetime) in time(0,0,1) to time(11,59,59) then "" else"X"
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.029 seconds.