THE GOAL
CBSE Class X • Information Technology (402)
Part B • Unit 3 • Chapter 12

📘 FORMS AND REPORTS

Database Management System using LibreOffice Base

This chapter explains how Forms and Reports are used in LibreOffice Base to make data entry and presentation of database information more user-friendly.

1. Why Do We Need Forms and Reports?

In a database, tables store data in an organised manner. Data can be entered directly through the datasheet view, but the row-and-column format is not always user-friendly.

⚠️ Exam Point

A Form provides a user-friendly screen for entering, viewing and modifying data, whereas a Report presents retrieved data in an attractive, understandable and formatted manner.

Both Forms and Reports are database objects and are available in the Database Pane of LibreOffice Base.

✦ ✦ ✦

2. Forms

A Form is a database object that provides a user-friendly interface through which data can be entered, viewed and modified in an attractive and easy-to-read format.

🎯 Definition — Learn This

Form: A database object having a user-friendly interface for entering and viewing data in an attractive and easy-to-read format.

Front End of Database

For a database, a form acts as the front end for data entry and data modification.

Unlike a simple row-and-column datasheet, a form displays data according to a layout designed by the user.

3. Field Control

A form primarily contains field controls arranged in a presentable and user-friendly manner.

Each field control consists of two important parts:

Part Meaning
Label Text that specifies what data should be entered in the corresponding field.
Field Value Text Box A text box linked to the respective field of the table.
🧠 Memory Trick

Field Control = Label + Field Value Text Box

Other Elements in a Form

4. Ways to Create a Form

⭐ Very Important

There are two ways to create a form in LibreOffice Base:

  1. Using a Wizard
  2. Using Design View

5. Creating a Form Using Wizard

The Form Wizard is the simplest way to create a form.

Step 1 — Open Forms

Open the database and click the Forms icon in the Database Pane. Then select:

Use Wizard to Create Form…

Step 2 — Select Table or Query

Select the table or query for which the form has to be created. For example: Events table.

Step 3 — Available Fields

After selecting the table, its fields are displayed in the Available Fields list box.

Step 4 — Select Fields

Move the required fields from Available Fields to Fields in the Form.

💡 Remember

The >> button can be used to move all available fields to the form.

Step 5 — Subform

A Subform means a form within a form.

To add a subform, select the Add Subform checkbox.

If no subform is required, click Next without selecting it.

Step 6 — Arrange Controls

The wizard provides different layouts for arranging the labels and field values.

Layout Description
Columnar display with labels on the left Labels appear on the left of the field value.
Columnar display with labels on top Labels appear above the field value.
Display as datasheet Data is displayed in row-and-column format.
Block display with labels on top Fields are arranged in blocks with labels on top.

Step 7 — Form Usage

The wizard asks whether the form will be used for:

Step 8 — Apply Styles

The style step allows us to choose:

The available border styles include: 3D, No Border and Flat.

Step 9 — Give Form Name

Enter a suitable name for the form, for example: EventsForm.

After completion, the wizard allows us to:

Step 10 — Finish

Click Finish. The form is created and the first record is displayed.

6. Forms Controls Toolbar

The Forms Controls Toolbar contains various controls that can be added to or edited on a form.

🎯 Exam Question

Function of Forms Controls Toolbar: It contains various controls/tools used to add or edit controls on a form.

7. Records Toolbar

The Records Toolbar contains navigation controls used to move from one record to another.

It also contains commands for operations such as:

Toolbar Main Function
Forms Controls Toolbar Add or edit controls on a form.
Records Toolbar Navigate and perform record operations such as new, save and delete.

8. Modifying a Form

After creating a form, it can be modified according to the requirement.

Examples:

9. Changing Background Colour

  1. Open the database and select Forms.
  2. Right-click the form name.
  3. Select Edit….
  4. In Design View, right-click the form.
  5. Select Page Style….
  6. Open the Area tab.
  7. Select the desired colour.
  8. Click OK.

10. Editing Labels

  1. Place the mouse pointer over the label.
  2. Press Ctrl + Click to select the label.
  3. Right-click the selected label.
  4. Select Control Properties….
  5. Change the Label property.
  6. Other properties such as width, height, alignment, font style and font size can also be changed.
🧠 Shortcut

Ctrl + Click → Select individual control such as a label or text box.

11. Moving a Control

A control can be moved to another location on the form.

  1. Click the control.
  2. Both label and field value text box are selected.
  3. Position handlers appear.
  4. To select only one part, use Ctrl + Click.
  5. Click and drag the selected control to the desired location.

12. Changing Text Box Size

  1. Press Ctrl and click the text box.
  2. Position handlers appear around the text box.
  3. Place the pointer on a handler.
  4. The pointer changes to a double-sided arrow.
  5. Click and drag to change the size.

13. Tool Tip / Help Text

A tool-tip is a small piece of text displayed when the mouse pointer is placed over a particular control.

⭐ Definition

Tool-tip / Help Text: A small text message that appears when the mouse pointer is placed over a particular control.

Example:

Enter Event Identification Number

Steps to Add Tool Tip

  1. Press Ctrl and click the EventID text box.
  2. Right-click and select Control Properties….
  3. Find the Help Text property.
  4. Enter the required message.
  5. Close the Properties dialog box.
🧠 Exam Memory

Tool Tip = Help Text

14. Adding Calendar to Date Field

A calendar makes date entry easier because the user can select a date instead of typing it manually.

Important Properties

  1. Select the Date text box.
  2. Open Control Properties….
  3. Find Date Format.
  4. Select Standard (long).
  5. Find the DropDown property.
  6. Change its value from No to Yes.
  7. Close the dialog box.
🔥 VERY IMPORTANT MCQ

To display a calendar for a Date field:

Date Format → Standard (long)

DropDown → Yes

15. Adding Text / Title to Form

Titles, headings and subheadings can be inserted while designing a form.

Steps

  1. Select the Label tool from Forms Controls Toolbar.
  2. Click and drag on the form to create a label box.
  3. Double-click the box.
  4. Open Properties: Label Field.
  5. Enter the required text in the Label property.
  6. Use the Font property to change font type, style and size.
  7. Close the Properties dialog box.
💡 Example

Title: Data Entry Form

16. Design View and Form View

Design View Form View
Used to create and modify the form. Used to display and work with records through the form.
Controls can be added, moved and formatted. Records can be viewed, entered and modified.
⭐ Important

The Design Mode button on the Forms Controls Toolbar is used to toggle between Design View and Form View.

17. Adding a New Record Using Form

After designing the form, switch to Form View.

  1. Click the New Record button on the Records Toolbar.
  2. A blank form appears.
  3. Enter the required data.
  4. Click Save Record.

Deleting a Record

  1. Navigate to the required record.
  2. Click the Delete button on the Records Toolbar.
  3. The next record is displayed.
✦ ✦ ✦

18. Reports

A Report is another useful feature of a Database Management System.

Queries display retrieved data in simple row-and-column format. A report presents that retrieved data in an attractive, understandable, formatted and customized manner.

🎯 Definition — Must Learn

Report: A database object used to present retrieved data in an attractive and customized manner.

Report Can Be Based On

⚠️ Important

If a report has to be generated from multiple tables, it is preferable to create a query first and then use that query to generate the report.

19. Creating a Report Using Wizard

Step 1 — Open Reports

Click the Reports icon in the Database Pane.

Step 2 — Report Wizard

Select: Use Wizard to Create Report…

Step 3 — Windows Open

The Report Wizard opens along with:

🔥 MCQ Alert

Report Wizard opens along with Report Builder and Add Fields dialog box.

Step 4 — Select Table and Fields

Select the required table or query. For example: Events.

Move the required fields from Available Fields to Fields in report.

Step 5 — Label the Fields

The default field names can be changed into more explanatory column headings.

Step 6 — Group Data

Records can be grouped according to a particular field.

Example: CategoryID can be used to generate category-wise reports.

Step 7 — Sort Data

Data can be sorted in:

Example: Records can be sorted according to EventID.

Step 8 — Select Layout

The layout determines how labels, field values and titles appear in the report.

Example: Tabular layout.

Header/footer and page orientation can also be selected.

Orientation options: Landscape and Portrait.

Step 9 — Name the Report

Give a suitable name such as: EventsReport.

20. Dynamic and Static Report

Dynamic Report Static Report
Automatically reflects changes made in the underlying table or query. Does not automatically update when the underlying data changes.
Useful when current data needs to be reflected. Useful when a fixed version of the report is required.
🔥 MUST REMEMBER

Dynamic → changes automatically with table/query data.

Static → does not automatically update.

21. Report Builder

The Report Builder is used to modify and format a report.

Additional controls can be inserted using the Report Controls Toolbar.

22. Inserting Titles and Headings in Report

  1. Click the Label tool on the Report Controls Toolbar.
  2. Click and drag on the report to create a label box.
  3. Double-click the label.
  4. Enter the required title in the Label property.
  5. Use the Font property to change font type, style and size.
  6. Close the Properties dialog box.
💡 Example

Annual Sports Day Report

23. Inserting Date and Time in Report

  1. Click inside the Page Header area.
  2. Select Insert → Date and Time….
  3. The Date and Time dialog box appears.
  4. Select the desired date/time format.
  5. Click OK.
  6. The date/time can be repositioned by dragging it.

24. Grouping Records in a Report

Reports can group retrieved data according to a particular field.

Example: If events have to be displayed category-wise, move the CategoryID field to the Groupings list box.

🧠 Remember

Grouping = arranging records according to a field.

Example: CategoryID → Category-wise report

25. Form vs Report

Form Report
User-friendly interface for entering, viewing and modifying data. Presents retrieved data in an attractive and customized manner.
Mainly used for data entry and modification. Mainly used for presentation of data.
Works as the front end for database data entry. Provides formatted presentation of retrieved data.

26. Important Properties & Tools

Term / Tool Purpose
Forms Controls Toolbar Add/edit controls on a form.
Records Toolbar Navigate and manage records.
Control Properties Modify properties of a selected control.
Help Text Add tooltip/help message.
Design Mode Toggle between Design View and Form View.
Date Format Controls the format of date display.
DropDown Allows dropdown/calendar functionality for date control.
Report Controls Toolbar Add controls while editing a report.
Groupings Groups records according to selected field.

27. Most Important Exam Questions

Q1. What is a Form?

Ans. A Form is a database object having a user-friendly interface for entering and viewing data in an attractive and easy-to-read format.

Q2. What is a Report?

Ans. A Report is a database object used to present retrieved data in an attractive and customized manner.

Q3. What is a field control?

Ans. A field control consists of a label and a field value text box. The text box is linked to the corresponding field of the table.

Q4. Name the two ways to create a Form.

Ans. Using a Wizard and Using Design View.

Q5. What is a Subform?

Ans. A Subform is a form within a form.

Q6. What is a Tool Tip?

Ans. It is a small piece of text displayed when the mouse pointer is placed over a particular control.

Q7. Which property is used to add tooltip text?

Ans. Help Text property.

Q8. How can a calendar be added to a Date field?

Ans. Set Date Format to Standard (long) and DropDown property to Yes.

Q9. What is the function of Records Toolbar?

Ans. It provides navigation and record-management controls such as moving between records, adding, saving and deleting records.

Q10. What is the difference between Dynamic and Static Report?

Ans. A Dynamic Report automatically reflects changes in the underlying table/query, whereas a Static Report does not automatically update.

Q11. On what can a report be based?

Ans. A report can be based on a table, query or both.

Q12. Which layout can be selected for a report?

Ans. One available layout is Tabular. Header/footer and orientation such as Landscape or Portrait can also be selected.

28. 🔥 MCQ FACTS — Direct Revision

⚡ QUICK REVISION — CHAPTER 12

🚨 LAST-MINUTE EXAM ALERT

Chapter 12 mein sabse zyada important concepts:

Form vs Report • Field Control • Two methods of Form Creation • Forms Controls Toolbar • Records Toolbar • Tool Tip • Help Text • Date Format • DropDown • Design Mode • New/Save/Delete Record • Report Wizard • Grouping • Sorting • Landscape/Portrait • Dynamic vs Static Report