Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: showing month and year Post Reply Post New Topic
Author Message
lamiajoyee
Newbie
Newbie


Joined: 17 Apr 2012
Online Status: Offline
Posts: 2
Quote lamiajoyee Replybullet Topic: showing month and year
    Posted: 17 Apr 2012 at 6:09am
hello i need to make a condition in my report where it will take the values from a sql database that were modified this month. in the db it is stored in this pattern-"April 2012" (for example). how can crystal report detect the month from this string? all i can think of is this. please help


cstr(monthname(month(currentdate)))+"-"+cstr(Year(CurrentDate))
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Apr 2012 at 6:25am

if I understood you correctly

{table.field} = totext(currentdate,"MMMM yyyy")
IP IP Logged
lamiajoyee
Newbie
Newbie


Joined: 17 Apr 2012
Online Status: Offline
Posts: 2
Quote lamiajoyee Replybullet Posted: 17 Apr 2012 at 7:32am
yes, this solved my problem. thank you very much
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.030 seconds.