PDA

Click to See Complete Forum and Search --> : [RESOLVED] CR 10.2 Error Message???


blakemckenna
Jul 25th, 2007, 09:03 AM
I'm not sure exactly how to process a SelectionFormula where a value is evaulating a DateTime variable. I have the following statement:

{tblRequest.requestDate} IN '7/1/2007 7:02:55 AM' TO '7/25/2007 7:02:55 AM'


I keep getting the Error Message "Error in Formula". Please see attachment for entire message.

Thanks,

brucevde
Jul 25th, 2007, 09:50 AM
I doubt this is your actual code. Does your report contain parameters or are setting the formula in VB? Regardless, convert the strings to dates.

Crystal has several functions to do just that. CDate might work.

{tblRequest.requestDate} IN CDate('7/1/2007 7:02:55 AM') TO CDate('7/25/2007 7:02:55 AM')

blakemckenna
Jul 25th, 2007, 11:06 AM
Bruce,

That was it. Thanks bro!