Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Date Range (from past to two months forward) Post Reply Post New Topic
Author Message
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Topic: Date Range (from past to two months forward)
    Posted: 11 Sep 2017 at 5:27am
Hi there,

I'm working on a shipment report that shows what's available to ship from everything in the past, up to two months from current date.

I have this formula, the section marked in Bold is the one i need help with to give me the data i need:

I set it in actual dates because i don't know how to write it otherwise

{V_ARINVT_AVAIL_DTL.ON_HAND} >= {V_ARINVT_AVAIL_DTL.SHIP_QUAN} and
{V_ARINVT_AVAIL_DTL.TRAN_DATE} in Date(2010, 01, 01) to date(2017, 12, 31)

Please help me :(
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Sep 2017 at 5:49am
two months ago today would be
dateadd('m',-2,today)
IP IP Logged
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Posted: 11 Sep 2017 at 6:11am
no what i need is two months forward
IP IP Logged
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Posted: 11 Sep 2017 at 6:19am
ok i think i figured it out?? i changed the minus to a plus lol and it worked! thanks!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.