CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    4

    Record selection formula editor error

    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

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Record selection formula editor error

    And what about ---> {records.entrance_date} ? Is it date data type too?

    JG

  3. #3
    Join Date
    May 2010
    Posts
    4

    Re: Record selection formula editor error

    yes thts also of date data type

  4. #4
    Join Date
    Apr 2008
    Location
    Pittsburgh
    Posts
    103

    Re: Record selection formula editor error

    Try

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

  5. #5
    Join Date
    May 2010
    Posts
    4

    Re: Record selection formula editor error

    hello my problem is solved by selecting the data type of the variables ?entrance_date and ?entrance_date2 as 'string' .............

  6. #6
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Record selection formula editor error

    Then your table field {records.entrance_date} is not of date data type

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

Featured