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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a time range 1

Status
Not open for further replies.

Maker1

Technical User
Jun 20, 2003
73
US
I am using crystal 10. Is is possible to set up a report that runs from 6 am yesterday to 6 am today? I need to have that as the default time range, so that when the report is run it uses that time frame without the end user needing to put in any data.
 
Try a record selection formula like:

{table.datetime} in datetime(currentdate-1,time(6,0,0)) to datetime(currentdate,time(5,59,59))

-LB
 
Thanks MUCH!! I knew there was a way to do that just couln't find it. Have a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top