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

Problem with date and returned records 2

Status
Not open for further replies.

byteofram

IS-IT--Management
Jan 23, 2002
41
US
Ok, I have a report that needs to pull the terminated employees for the last week from the SQL database. I can pull ALL the terminated employees, but I only need it to show from todays date and the previous 7 days (this report is scheduled to run every Fri) data. Without using parameters, how do I accomplish this? I'm a rookie report writer, but this report will really help out my department.
 
In your record selection formula, one of these will work:

1) This will give you the last 7 days:
[tt]{Table.TerminationDate} in Last7Days[/tt]

2) This will give you the last 8 days:
[tt]{{Table.TerminationDate} in CurrentDate - 7 to CurrentDate[/tt]

-dave
 
Thanks for your help! That's exactly what I needed and works perfectly. Heres a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top