Solved

Formula Results 3

Posted on 2013-01-21
6
312 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:tthayer
  • 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:tthayer
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 3

Author Comment

by:tthayer
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 500 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:tthayer
ID: 38804174
The Experts have save the day!!!!!  Thanks again.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now