Record selection formula editor error (1 Viewer)

dashing

New member
Local time
Yesterday, 22:15
Joined
May 26, 2010
Messages
1
hello I'm trying to generate crystal report based on the two dates selected by the user ...

the selection formula editor gives me the error "a string is required" when I want
to save and close my formula , can any1 help me whts wrong with my formula shown below ,

{records.entrance_date} >= {?entrance_date} and {records.entrance_date} <= {?entrance_date2}

both ?entrance_date and ?entrance_date2 are of date data type



thanks :)
 

kevlray

Registered User.
Local time
Yesterday, 22:15
Joined
Apr 5, 2010
Messages
1,046
Is {records.entrance_date} a date or a string in the DB?
 

Mohanbabu.Pandari

New member
Local time
Today, 10:45
Joined
Apr 26, 2013
Messages
3
try this.. This should work

{records.entrance_date} >= cDate({?entrance_date}) and {records.entrance_date} <= cDate({?entrance_date2})


If you are using Single date range Paramater then use the following
{records.entrance_date} >= Minimum({?entrance_date}) and {records.entrance_date} <= Maximum({?entrance_date})

Thanks
Mohanbabu Pandari
 

Users who are viewing this thread

Top Bottom