Results 1 to 5 of 5

Thread: Test Attributes

  1. #1
    Join Date
    Aug 2003
    Location
    Columbia, SC
    Posts
    6

    Question Unanswered: Test Attributes

    I have this while loop that the values return as they should to enter the loop, yet the loop is never entered.

    While ((Form_ETS_PARTICIPANT_DATA_ENTRY.txt_OTDescribe.V alue = Null) _
    And (Form_ETS_PARTICIPANT_DATA_ENTRY.CheckOtherTRIO.Va lue = True))
    MsgBox "Some text"
    Wend

    txt_OTDescribe.Value = a text value
    CheckOtherTRIO.Value = true or falseI have this while loop that the values return as they should to enter the loop, yet the loop is never entered.

  2. #2
    Join Date
    Aug 2003
    Location
    Columbia, SC
    Posts
    6
    Please disreguard everything after the word false.

  3. #3
    Join Date
    Aug 2003
    Location
    Columbia, SC
    Posts
    6
    Thanks, but I found the problem... not .Value, but .Text

  4. #4
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    .value should work fine!

    more dangerous is your:
    While ((something = Null) And (somethingelse))
    ...this probably evaluates to:
    While ((Null) And (somethingelse))
    ...which never happens.

    consider replacing with
    While ((IsNull(something)) And (somethingelse))

    izy

  5. #5
    Join Date
    Aug 2003
    Location
    Columbia, SC
    Posts
    6

    Thanks - izy

    Good point. Thanks.

Posting Permissions

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