Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Date in a Record Selection

Status
Not open for further replies.

GCL2007

IS-IT--Management
Dec 11, 2007
167
US
Using Crystal 11, I am trying to create an alert where I want my transaction date to pull from 22:00 two days prior until 23:30 the previous day. The report will run automatically at 7:00 AM each day. Any thoughts the best way I could put that date selection in the record selection? Thanks
 
formula {@startdate}
beforereadingrecords;
currentdate-2

formula {@enddate}
beforereadingrecords;
currentdate-1

({table.date} = {@startdate} and {table.time} > time(2200) )
or
((table.date} = {@enddate} and {table.time} < time(2201) )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top