Create Data Entry Forms in LibreOffice Base
LibreOffice Base provides robust tools for creating interactive data entry forms that simplify how users input, view, and modify database records. This guide covers the essential steps required to build and customize a functional data entry form, from using the Form Wizard for rapid layout generation to modifying control properties in Design View for enhanced interactivity.
Step 1: Open the Form Wizard
- Launch LibreOffice Base and open your database file
(
.odb). - In the left-hand Database pane, click on the Forms icon.
- In the Tasks pane, select Use Wizard to Create Form….
Step 2: Select Tables and Fields
- In the Field selection step, choose the table or query that will supply data to the form from the Tables or queries dropdown menu.
- Move the desired fields from the Available fields box to the Fields in the form box using the arrow buttons. Click Next.
Step 3: Add a Subform (Optional)
- If your data structure relies on a one-to-many relationship (such as customers and their orders), check the Add Subform box.
- Choose whether to base the subform on an existing relation or manually link fields between the main form and subform. Click Next.
Step 4: Arrange Controls and Layout
- Select a visual arrangement for your main form controls (e.g., Columnar - Labels Left, Columnar - Labels Above, As Data Sheet, or In Blocks).
- If you added a subform, choose an arrangement for the subform controls as well. Click Next.
Step 5: Configure Data Entry Mode
- Choose how the form will handle data:
- The form is to be used for entering new data only: Existing records will not be displayed.
- The form is to display all data: Allows viewing, modifying, and deleting existing records, as well as adding new ones.
- Optionally, check boxes to disallow deleting, modifying, or adding data depending on your workflow requirements. Click Next.
Step 6: Apply Styles and Name the Form
- Choose a color scheme and border style for the input fields.
- In the final step, enter a name for the form.
- Select Modify the form to enter Design View directly, or choose Work with the form to test it immediately. Click Finish.
Step 7: Enhance Interactivity in Design View
To make the form truly interactive, switch to Design
View (right-click the form name and select
Edit): * Add Push Buttons: Use the
Form Controls toolbar to draw a button on the canvas.
Right-click the button, select Control Properties, and
set the Action property to actions like Next
Record, Save Record, or New Record. *
Create Dropdown Lists (List Boxes): Replace plain text
boxes with List Boxes to provide predefined selections linked to foreign
key tables. * Adjust Tab Order: Go to Form
Design > Activation Order to ensure the cursor moves
logically from one field to the next when pressing the Tab
key.
Step 8: Save and Test
- Click the Save icon in the toolbar to save changes to the form design.
- Toggle off the Design Mode button (or close the editor and double-click the form from the main Base window) to test data entry, record navigation, and interactive controls.