ICT 0417 – Databases: Setting Display Format of Boolean/Logical Fields
Cambridge IGCSE ICT 0417 – Databases
Topic 18: Databases
Learning Objective
Be able to set the display format of a Boolean / logical field (yes/no, true/false, checkbox) in a database table.
Key Concepts
Boolean / logical fields store only two possible values.
The display format determines how those values are shown to the user.
Common display formats: Yes/No, True/False, Checkbox.
General Procedure to Set the Display Format
Open the database and locate the table containing the Boolean field.
Enter Design \cdot iew (or Structure view) for the table.
Select the Boolean field you wish to modify.
Find the property named Display Format (or similar, e.g., “Format”, “Input Mask”).
Choose one of the available options:
Yes / No
True / False
Checkbox
Save the table design and return to Datasheet (or Browse) view to see the effect.
Example: Setting a Checkbox Display in Microsoft Access
Open the database file Students.accdb.
In the Navigation Pane, right‑click the table Enrollments and choose Design \cdot iew.
Click the field PaidFee (data type: Yes/No).
In the Field Properties pane, locate the Display Control property.
Select Check Box from the drop‑down list.
Save the table (Ctrl+S) and close Design \cdot iew.
Open the table in Datasheet view – the PaidFee column now shows a tick‑box that can be checked or cleared.
Comparison of Display Formats
Display Format
Visual Representation
Typical Use‑Case
Yes / No
Text strings “Yes” or “No”
Surveys where a clear verbal answer is required.
True / False
Text strings “True” or “False”
Logical conditions in programming‑oriented databases.
Checkbox
Square box that can be ticked (✔) or left empty
Forms where quick toggling of a status is needed (e.g., completed, paid).
Tips and Common Mistakes
Verify the underlying stored values (usually 0 = No/False, -1 or 1 = Yes/True) before changing the format.
Changing the display format does not alter the data; it only changes how it is shown.
In some DBMSs (e.g., MySQL) Boolean is stored as TINYINT(1); display is handled by the application layer.
When using forms, ensure the control type matches the field’s display format to avoid mismatched data entry.
Practice Exercise
Create a new table called Tasks with fields:
TaskID – AutoNumber (Primary Key)
Description – Short Text
Completed – Yes/No (Boolean)
Set the Completed field to display as a checkbox.
Enter at least five records, checking the box for some tasks and leaving it unchecked for others.
Switch to Datasheet view and observe how the checkbox reflects the stored values.
Suggested diagram: Screenshot of a table in Datasheet view showing the checkbox column for the Boolean field.
Summary
Setting the display format of a Boolean/logical field allows the same underlying data to be presented in a way that best fits the user’s needs. Whether you choose Yes/No, True/False, or a checkbox, the steps are similar across most desktop database applications: open design view, select the field, adjust the display property, and save.