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

Display records since 26 hrs ago

Status
Not open for further replies.

DianaStewart

Programmer
Apr 16, 2002
58
CA
I am using CR 7.0

My report contains data for the school library. When I open my report I want to be able to display all the books that are taken out since 26 hrs ago. Example: I open my report on Wednesday at 7h30 am all the books since Tuesday at 5h30 am will be displayed... How can I do this? Any ideas?

Samuel
 
One way is to use the DateDiff function.
If you use the "n" argument for calculating minutes you can write like this in your Record Selection:

DateDiff (&quot;n&quot;,{table.DateTimeField} , CurrentDateTime) <= 1560

(26 hour = 1560 min)

/Goran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top