Skip to main content
    TQ2 · Chapter 4 · Lesson 32

    Restrict typed inputs with validation

    A Stop alert is set for whole numbers one through ten; typing twenty?

    • TQ2-C04-L32
    • About 2 min
    • Khmer voice · English terms
    • Textbook pp 154–157
    Subtitles
    Speed
    Audio: Khmer

    Lesson 32 · 32 of 35 in TQ2 Chapter 4

    Practice card

    Your turn

    A whole-number validation rule permits 1–10 inclusive and uses a Stop alert. Is an entry of 5 allowed?

    Decide your answer first, then check it.

    Check yourself

    3 exam-style questions

    2 questions on this lesson and 1 review question from Lesson 30. Choose an answer, then check it to see why it is right or wrong.

    1. Question 1 of 3This lessonTextbook pp 154–157
      A data-validation rule accepts a typed value. What does that establish?

    2. Question 2 of 3This lessonTextbook pp 154–157
      An entry rule should permit only dates in a specified interval. What should its configuration define?

    3. Question 3 of 3Review · Lesson 30Textbook pp 152–153
      A PivotChart category is missing from view. Which settings should a reviewer inspect before explaining the chart?

    Your answers stay on this device. A question you miss goes on your review list and comes back in a later quiz.

    Notes

    Read first: TQ2 study text, printed pages 154–157.

    Book §5.1, pp 154–157. The whole-number rule from 1 to 10, the Stop alert and the entry 20 are the book's (p 155); the entry 5 is ours.

    How this lesson uses the textbook: TQ2 Chapter 4 · English printed pp 154–157

    Source: New term: data validation. Source §5.1, pp 154–157.

    These lessons add to your formal studies; they don't replace them. Keep going to class, reading your textbook, doing the practice exercises and taking notes.

    Read the English transcript

    A Stop alert is set for whole numbers one through ten; typing twenty?

    A configured Stop alert blocks acceptance of the typed twenty.

    Validation checks typed input against a rule, for example a whole-number range or a permitted date. It does not establish whether an allowed value agrees with the source document, and copying or pasting can require further checks.

    The textbook sets a whole-number rule between one and ten and configures a Stop error alert. Enter the bounds and a clear input message, then test the endpoints one and ten. When twenty is typed, the Stop alert appears. Check the alert style, then compare accepted data with its source.

    Watch out for choosing a warning that permits continuation when this exercise requires a blocking Stop alert.

    Your turn. Keep the one-through-ten rule and change only the typed entry from twenty to five. Is the entry allowed?

    Remember to test the rule and still compare accepted data with its source.

    The video already has Khmer subtitles. The Khmer transcript follows after our Khmer review.

    Cookies on this site

    Essential cookies only, unless you allow analytics or advertising.