Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: pull a 1 week of data Post Reply Post New Topic
Author Message
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Topic: pull a 1 week of data
    Posted: 07 Jul 2023 at 8:41am
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
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 07 Sep 2023 at 12:05pm
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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.