Results 1 to 4 of 4

Thread: Crystal Report Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108

    Crystal Report Problem

    Hi folks,

    Similar to IsDate() in Visual Basic, does Crystal Report 7.0 has any function that works like that?

    I am trying to populating a list of date in one month, but when it comes to an invalid date (e.g. 31 Apr, 30 Feb), it will prompt an error about the date range.

    I went through the date and date range function index, but couldn't find anything which return bool for verifying date and time format, nor can I find something to give me the maximum number of days in a month.

    Can someone help me please?

    Thank you. Regards.

    KT

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    The Lone Star State
    Posts
    183
    I don't think there is a function for that. You can check for a null date by looking for the year 1899.
    !

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108
    Thanx for your reply.
    Do you mind giving me an example on using a null date?
    Rgds.

    KT

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Location
    The Lone Star State
    Posts
    183
    If {Claims.Date Resolved} = Date (1899,12,31) Then "N/A" Else
    ToText (Date({Claims.Date Resolved}))
    !

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