Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Show next 3 months by name Post Reply Post New Topic
Author Message
Twizik
Newbie
Newbie
Avatar

Joined: 19 Apr 2012
Online Status: Offline
Posts: 21
Quote Twizik Replybullet Topic: Show next 3 months by name
    Posted: 30 May 2012 at 4:20am
I am writing a report to show contract billing coverage for maintenance contracts.
Billed on January 1, covered for 3 months including January. (January, February, March) Then it will be billed in April and should say April,May,June. etc.

I think I can do this 2 ways, take the invoice date because it is invoiced at the start of a new coverage period, or take the start date for the year and figure out the amount of billings and get it from that. I just don't know how to execute, Pics attached with what I have and what i would like to achieve.

What I have:



What I would like:
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 May 2012 at 5:28am

I am not sure which date you are keying off of,

today, contract start date or seomthing else but basically you can use something like this:
 
monthname(month(currentdate)) + ', ' + monthname(month(dateadd('m',1,currentdate))) + ', ' + monthname(month(dateadd('m',2,currentdate)))
IP IP Logged
Twizik
Newbie
Newbie
Avatar

Joined: 19 Apr 2012
Online Status: Offline
Posts: 21
Quote Twizik Replybullet Posted: 30 May 2012 at 7:00am
That did it! I was using the date add function but could not figure out how to get the date as a string not a number! I replaced (currentdate) with my invoice date field and it works perfect.
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.031 seconds.