pull a 1 week of data

Printed From: Crystal Reports Book — Forum Name: Technical Questions

Hello I have a date parameter where the user will select a date on a Saturday.

I then want it to pull the data for Sunday-Saturday.

Example they enter 7/1/2023 for the parameter date and then I want to bring back the data for Sunday 6/25 - Saturday 7/1.

Thank you
You have probably already figured this out.

I would have the user input be a paramater, and I would set the date range to be DATEADD("day", -6, @userInput)

This could be set to a variable or hopefully passed to procedure or used in the select clause. Whichever way you are retrieving your data.

It's been a while, I think that should work.