Solved

Fromula Results 2

Posted on 2013-01-21
4
266 Views
Last Modified: 2013-01-21
Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Year(currentdate) and
Month({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Month(currentdate) and
Day({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) <= Day(currentdate)

I have a formula above and would like to know what the results would return.  The data being pulled has multiple years before and after the current month.  

What I am trying to do is get the formula to select anything less than or equal to the current day and within the same month withing the same year.  For example.  If today is 1/21/2013  I am wanting to pull everything from 1/21/2013 back to 1/12013

Just wanting to make sure.

Previously I asked a similar question and found I had the wrong formula.


Just wanting to make sure this will work.

Thanks in Advance
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
  • 2
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 38803112
Easy way to get this

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}  IN MonthToDate

mlmcc
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 38803891
Wow there are many ways to get there!  Thanks for taking the time.  If I am going the opposite way for the same year and the current month but the day is greater than today but still the same month is there also a better way or should I use the below.

Year({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Year(currentdate) and
Month({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) = Month(currentdate) and
Day({JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate}) > Day(currentdate)
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 38803916
Perhaps

{JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate} > CurrentDate AND
JAM_DSH_OP_Open__Summary.OrderRel.NeedByDate < DateSerial(Year(CurrentDate), Month(CurrentDate) + 1, 1)

mlmcc
0
 
LVL 3

Author Comment

by:Trygve Thayer
ID: 38804062
Thanks so much.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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. …
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 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