Solved

Formula Results 3

Posted on 2013-01-21
6
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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.

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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. …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

710 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