Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Crystal report date selection formula Post Reply Post New Topic
Author Message
kamesh
Newbie
Newbie


Joined: 12 Jan 2011
Location: India
Online Status: Offline
Posts: 1
Quote kamesh Replybullet Topic: Crystal report date selection formula
     Posted: 12 Jan 2011 at 6:37am
Hi Friends,
I was not able to generate reports with the selected date range.

- i have taken two calender controls and two textboxes. iam inserting selected date in to textboxes (i.e., startdate and Enddate). While writing the selection formula, i'm getting lot of erros...

while running the application iam getting errors from crystal report as follows.
- missing )
- date time is required here.

fyi: i'm using the following formula.
"{ActivityLog.datefieldinDb}" +" between" +"'"+cal1.selecteddate.toshortdatestring+"'"+ "and""'"+cal2.selecteddate.toshortdatestring+"'"

I was not able to written proper syntax. Please help me out.......


quick response is greately helpful for me.....................
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 12 Jan 2011 at 7:07am
I am not sure about the other problems, but in crystal the syntax for string concatenation is &

ie: "a" & "b" results in "ab"
IP IP Logged
lhuffst
Newbie
Newbie
Avatar

Joined: 06 Jan 2011
Location: United States
Online Status: Offline
Posts: 2
Quote lhuffst Replybullet Posted: 28 Jun 2011 at 8:47am
If your database field is of date type only then you need to change your parameter field type to date.  Whatever type is in the field, the parameter must match.  If you edit the parameter, the type is specified in the top right corner
lhuffst
IP IP Logged
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