Results 1 to 3 of 3

Thread: [RESOLVED] CR 10.2 Error Message???

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [RESOLVED] CR 10.2 Error Message???

    I'm not sure exactly how to process a SelectionFormula where a value is evaulating a DateTime variable. I have the following statement:
    Code:
    {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,
    Blake

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: CR 10.2 Error Message???

    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')

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: CR 10.2 Error Message???

    Bruce,

    That was it. Thanks bro!
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width