Data Sources

From LibreOffice Help
Jump to: navigation, search

This section contains information on browsing and editing database tables.

Database Overview

Note.png You cannot use the data source browser on a database table that is open in Design view.

Data source browser

The commands for the data source browser are found on the Table Data bar and in context menus.

Selecting records

To select a record in a database table, click the row header, or click a row header, and then use the Up or Down arrow keys.

The following table describes how to select individual elements in the data source browser:

Selection Action
Record Click the row header
Several records or removing a selection Hold down Ctrl and click the row header
Column Click the column header
Data field Click in the data field
Entire table Click the row header of the column headings

Table Data toolbar (editing table data)

Icon
Allows you to edit, add, or delete records from the database table.

Cutting, copying and pasting data

You can cut, copy, and paste records in Data Source view. The Data Source browser also supports the dragging and dropping of records, or text and numbers from other LibreOffice files.

You cannot drag and drop to Yes/No, binary, image, or counting table fields.

Note.png Drag and drop only works in Edit mode.

Table Data Bar

Use the Table Data bar to control the data view.

Navigating in the Data Source Browser

Use the Form Navigation bar at the bottom of the Data Source view to navigate between different records.

First record

Icon

Go to the first record in the table.

Previous record

Icon

Go to the previous record in the table.

Record number

Type the number of the record that you want to display, and then press Enter.

Next record

Icon

Go to the next record in the table.

Last record

Icon

Go to the last record in the table.

New record

Icon

Inserts a new record into the current table. To create a record, click the asterisk (*) button at the bottom of the table view. An empty row is added at the end of the table.

Number of records

Displays the number of records. For example, "Record 7 of 9(2)" indicates that two records (2) are selected in a table containing 9 records, and that the cursor is in record number 7.

Organizing tables

To access the commands for formatting the table, right-click a column header, or a row header.

Table Format

Formats the selected row(s).

Row Height

Changes the height of the current row, or the selected rows.

Delete Rows

Deletes the selected row(s).

Column Format

Formats the selected column(s).

Column Width

Changes the width of the current column, or the selected columns.

Hide Columns

Hides the selected column(s). To display hidden columns, right-click any column header, and then choose Show Columns.

Show Columns

Displays hidden columns. Choose the column that you want to display from the list, or click All to display all of the hidden columns.