Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: pull a 1 week of data
Oldest Post First
Newest Post First
Author
Message
sanchezgmc06
Senior Member
Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
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 Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.035 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.