Solved

Formula Results 3

Posted on 2013-01-21
6
314 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
Gigs: Get Your Project Delivered by an Expert

Select from 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: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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

11 Experts available now in Live!

Get 1:1 Help Now