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

Filter records for due date 1

Status
Not open for further replies.

Freefall27

Technical User
Sep 8, 2005
65
US
I am running CR XI and need to filter records based on yesterday's date. I constructed formula CurrentDate - 1 and now need to only pull records with due date of yesterday.

Name Number Ref Due Date
Record 1 5679 11/25/2005
Record 2 6894 11/27/2005
Record 3 3695 11/25/2005

How can I filter to only show yesterday's due date (Record 2)

Newbie to Crystal Reports but learning a lot here.
Thanks for the help


 
Additionally I would only want to include Monday - Friday or only business days each week.

Thanks
 
Are you scheduling to run this Monday through Friday?

If so, add the following to the record selection formula

(
if DayofWeek({table.date}) = 2 then
{table.date} = currentdate - 3
else
{table.date} = currentdate - 1
)

-lw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top