Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: slq expression Help Post Reply Post New Topic
Author Message
nitrotech
Groupie
Groupie


Joined: 30 Jan 2013
Location: United States
Online Status: Offline
Posts: 42
Quote nitrotech Replybullet Topic: slq expression Help
    Posted: 23 Dec 2013 at 1:08pm
I have 3 db dates I need to filter on changes
Every time my employee status changes (einfo.status)
I need to grab that date.

The options in employee status dates are
einfo.hiredate
einfo.termdate
einfo.rehiredate

I need it in respect to the employee status change?

thanks
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 23 Dec 2013 at 9:48pm
hi

Instead of writing SQL Expressions better go for a Add command

Sample code would be :

Select status, Hiredate,Termdate,rehiredate from einfo where Status <>Previous(status)

now you also select tables which are required to generate report but do not link above Add command field with your table field.  You need to use this dates for only filtering purpose.


Thanks,
Sastry
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.031 seconds.