Please support us!

6ZiYE‖Database

B8JD8‖You can insert fields from any database, for example, address fields, into your document.

To access this command...

Choose Insert - Field - More Fields - Database tab


hAFUi‖

sBMhB‖Type

QZCqi‖Lists the available field types.

SF5Rx‖Field type

MHxBg‖Meaning

Ahow2‖Any Record

fUnF3‖Inserts the contents of the database field specified in the Record Number box as a mail merge field if the Condition is met. Only records choosen by a multiple selection in the data source view are considered.

Eo2Au‖You can use this field to insert several records into a document. Insert the Any Record field in front of the form letter fields that use a certain record.

FEURP‖Database Name

uGvZ4‖Inserts the name of the database table selected in the Database selection box. The Database Name field is a global field; that is, if you insert a different database name in your document, the contents of all previously inserted Database Name fields are updated.

dPJTk‖Mail merge fields

nXKmM‖Inserts the name of a database field as a placeholder so that you can create a mail merge document. The field content is automatically inserted when you print the form letter.

avtjX‖Next record

AS43U‖Inserts the contents of the next mail merge field in your document if the condition you define is met. The records you want to include must be selected in the data source view.

Co9zg‖You can use the "Next record" field to insert the contents of consecutive records between the mail merge fields in a document.

B3Coy‖Record number

8pCNM‖Inserts the number of the selected database record.


Note Icon

sFbmb‖The following fields can be inserted only if the corresponding field type is selected in the Type list.


NFRgf‖Database Selection

z5QsL‖Select the database table or the database query that you want the field to refer to. You can include fields from more than one database or query in a document.

Wd3DA‖

dHRZG‖Condition

BJMdk‖For fields linked to a condition, enter the criteria here.

PoeBD‖You can assign a condition that must be met before the contents of the Any record and Next record fields are inserted. The default condition is "True"; that is, the condition is always true if you do not change the condition text.

PUHJF‖Record number

ZqNsE‖Enter the number of the record you want to insert when the specified condition is met. The record number corresponds to the current selection in the data source view. For example, if you select the last 5 records in a database containing 10 records, the number of the first record will be 1, and not 6.

Note Icon

FVkHg‖If you refer to fields in a different database, or in a different table or query within the same database, LibreOfficeDev determines the record number relative to the current selection.


FBgdG‖Format

Dib34‖Select the format of the field you want to insert. This option is available for numerical, boolean, date and time fields.

HyEBd‖From database

7nEtn‖Uses the format defined in the selected database.

DKy6F‖Browse

iEja4‖Opens the Open dialog where you can select a database file (*.odb). The selected file is added to the Databases Selection list.

BZDCz‖User defined

hBG9f‖Applies the format you select in the List of user-defined formats.

ZkpDF‖List of user-defined formats

cUEoB‖Lists the available user-defined formats.

UZajB‖Printing a form letter

FgaRQ‖When you print a document that contains database fields, a dialog asks if you want to print a form letter. If you answer "Yes", the Mail Merge dialog opens, where you can select the database records to print.