Click to See Complete Forum and Search --> : Record selection formula editor error


dashing
May 26th, 2010, 01:57 PM
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

jggtz
May 26th, 2010, 07:23 PM
And what about ---> {records.entrance_date} ? Is it date data type too?

JG

dashing
May 27th, 2010, 04:22 AM
yes thts also of date data type

jade1977
May 27th, 2010, 05:10 AM
Try


{records.entrance_date} in {?entrance_date} to {?entrance_date2}

dashing
May 27th, 2010, 12:41 PM
hello my problem is solved by selecting the data type of the variables ?entrance_date and ?entrance_date2 as 'string' .............

jggtz
May 28th, 2010, 06:46 PM
Then your table field {records.entrance_date} is not of date data type