Results 1 to 3 of 3

Thread: If and Then

  1. #1
    Join Date
    Oct 2012
    Posts
    20
    Provided Answers: 3

    Answered: If and Then

    If the field M1TimeRemaining is blank then I get an error, is there a way using if and then functions to show "No Data" if the field is empty?

    Miscellaneous1: DateAdd("yyyy",[M1TimeRemaining],[InspectionDate])

    Thanks in advance.

    Dave

  2. Best Answer
    Posted by pbaldy

    "As answered elsewhere:

    Miscellaneous1: IIf(IsDate([M1TimeRemaining]),DateAdd("yyyy",[M1TimeRemaining],[InspectionDate]), "NoData")"


  3. #2
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6
    As answered elsewhere:

    Miscellaneous1: IIf(IsDate([M1TimeRemaining]),DateAdd("yyyy",[M1TimeRemaining],[InspectionDate]), "NoData")
    Paul

  4. #3
    Join Date
    Oct 2012
    Posts
    20
    Provided Answers: 3
    Yes, the other forum answer much quicker!

Posting Permissions

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