Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: first and last day of last month
Oldest Post First
Newest Post First
Author
Message
Macavity
Groupie
Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Topic: first and last day of last month
Posted: 23 Jan 2014 at 6:03am
Hi,
I have been changing a bunch of reports to get data from last month
formula:
@firstdaylastmonth : dateserial(year(currentdate),month(currentdate)-1,1)
@lastdaylastmonth : date(year(currentdate),month(currentdate,1)-1
Works perfect in the first ten reports, in the eleventh report :
firstdaylastmonth = 01/05/2006 and lastdaylastmonth = 31/05/2006
?????????
How does that happen ?
thanks
IP Logged
lolly54
Groupie
Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Posted: 27 Jan 2014 at 3:48am
If you want to get data from last month, why don't you use
lastFullMonth
?
Then, you wouldn't need to have the additional two formulas.
In selection criteria:
{@Open Date} in lastFullMonth
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.016 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2025 Brian Bischof. All Rights Reserved.