Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Formula Results 3

Posted on 2013-01-21
6
Medium Priority
?
319 Views
Last Modified: 2013-01-21
With the Experts help today I am very close to completing what I consider a complex report for me but have learned a lot and it has been fun.  I have one more question and hopefully can put this report behind me.

From a prior question this formula will give me anything in a recordset that is prior to the current month and back even into the prior years.  so essentially if the current month was April 15, 2013  this would give me  3/31/2013 back to  some date in the past like 1966 or what the recordset contains.

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) < Dateserial(Year(currentdate),Month(currentdate),0)

What I need is a formula that will give me everything back from the current year.  So if this were June 4, 2013  I need all the records from 12/31/2012 and back.

My best guess would be

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} < Dateserial(Year(currentdate),0)
0
Comment
Question by:Trygve Thayer
  • 3
  • 3
6 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38804139
try


{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} < Dateserial(Year(currentdate),0,0)
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 38804145
So I would not need month in it correct?
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38804149
you need to provide as Dateserial function required that parameter
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 3

Author Comment

by:Trygve Thayer
ID: 38804165
This is what I currently have.

Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) < Year(currentdate)

What I understand your suggestion to be is replace this with

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} < Dateserial(Year(currentdate),0,0)

am I interpreting correctly?
0
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 2000 total points
ID: 38804171
if you want compare by date
{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} < Dateserial(Year(currentdate),0,0)

other wise this is also correct

Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) < Year(currentdate
0
 
LVL 3

Author Closing Comment

by:Trygve Thayer
ID: 38804174
The Experts have save the day!!!!!  Thanks again.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question