Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date time parameters that keep changing Post Reply Post New Topic
Author Message
Kwirky
Newbie
Newbie
Avatar

Joined: 21 Apr 2010
Online Status: Offline
Posts: 32
Quote Kwirky Replybullet Topic: Date time parameters that keep changing
     Posted: 30 Sep 2010 at 1:01pm
Hi,
How do I create a date time parameter that allows the data to refresh from when the report was last run to the current time?
I am creating a sales report that will be migrated to Crystal Server so that it can be emailed automatically twice a day to managers. They want the data to show sales from when the last report was generated to the current time. The report will be scheduled to run at 12pm (lunchtime) and then again at 5.30pm, so I would need the data from 5.30pm to 12 noon, and then 12 noon to 5.30pm.
I can do currentdatetime for the end date, but how do I get a similar formula which shows when the report was last run?
Thanks.


Edited by Kwirky - 30 Sep 2010 at 3:29pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 01 Oct 2010 at 4:50am

assuming the report is automated to run and you are NOT storing actual run times that you can access as a datasource the best i think you can do is to run a if then to check if the cuurent time is between 5:15 and 5:45 then get today at noon to today at 5:30 otherwise get yesterday at 5:30 to today at noon

IP IP Logged
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