Skip to content
CAT Study Hub

iif

1 sub-question across 1 paper, 4 marks total.

Computer Applications Technology 2026

Question 5 — Database
5.54 marks

Edit qryEligibility by adding a calculated field called Eligible that returns 'Yes' if PitchScore >= 75; otherwise the field is blank. Save and close.

Show answer
  1. In a new empty Field cell:

Code
Eligible: IIf([PitchScore]>=75,"Yes","")
Eligible: IIf([PitchScore]>=75,"Yes","")

Why this earns the marks

marks for the field name Eligible followed by a colon, IIf, the test [PitchScore]>=75, "Yes" for true and blank "" for false — each syntax element is independently checkable, the same way an Excel formula's pieces are marked individually. IIf is Access's IF with three parts (test, true result, false result): the exact query-grid equivalent of Excel's IF(test, value_if_true, value_if_false), just under a different name because Access reserves the bare word "If" as a programming keyword elsewhere in the application. Do not write "No" or "False" because the question asks for blank — an empty string "" and the word "No" are different values entirely; a check comparing the field's contents for genuinely blank would fail against either literal word.