Results 1 to 2 of 2

Thread: [RESOLVED] Date Equals Null

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Location
    Madison, WI
    Posts
    136

    Resolved [RESOLVED] Date Equals Null

    How do I write: If Ending date = Null then do some stuff....
    This is in Crystal syntax
    Here is the code I tried but its not correct.
    If {PAYABLES_TRANSACTION.Starting} < CurrentDate And
    {PAYABLES_TRANSACTION.Ending} = CDate ("Null") Then
    "$" + {PAYABLES_TRANSACTION.Amount} + " is paid to " + {PAYABLES.PayableCompany} + {@period1} + " begining on " + ToText({PAYABLES_TRANSACTION.Starting}) + " and will continue until paid in full."
    - cally

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

    Re: Date Equals Null

    You need to use the IsNull function

    Code:
    If {PAYABLES_TRANSACTION.Starting} < CurrentDate And
    IsNull ({PAYABLES_TRANSACTION.Ending}) Then

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