Archive for April 2018
Advanced Database – Import from existing database into a database.
Open two separate database files. To import data, you can simply drag and drop between the windows. For example, to copy the Names table from the lower database in the example shown, left click and hold on ‘Names’ in the Tables section and drag it to the Tables section of the other database. A dialogue…
Read MoreAdvanced Database – Link external data to a database: existing database
To link data from a different database source, open a new LibreOffice Base file. In step 1 of the wizard, choose ‘Connect to an existing database’ and select the format of the database e.g. Microsoft Access 2007. Click Next and then select a database file. Finish and save. The database will then import data from…
Read MoreAdvanced Database – Link external data to a database: text
For this tutorial, we are going to create a text file in LibreOffice Writer. Open LibreOffice Writer. Enter the text shown. The first line designates field names, separated by commas. Each new line represents a new record with fields in the same order as the top line. Select Save As from the File menu. Name…
Read MoreAdvanced Database – Link external data to a database: spreadsheet
For this tutorial, first we are going to create a LibreOffice Calc spreadsheet. Open a new Calc file. In sheet 1, enter the data shown to the left. Then right click on the tab for the sheet and select ‘Rename Sheet’ Type Customer Names and Ages, click OK. Save the sheet as ‘Example 1’ Click…
Read MoreUnderstanding Databases – Force page breaks for groups in a report
Select the Surname group section on the left hand side (in blue) In the properties section on the right hand side, where it says ‘Force New Page’ select ‘Before Section’. This will insert a page break before each new section. Execute the report to see the effect of this change. Notice that a page break…
Read MoreAdvanced Databases – Sort, group records in a report by field(s)
To change the sorting and grouping in a report, click the sorting and grouping icon. In the window that pops up, you can select the grouped fields and change their properties. You can choose to sort ascending or descending, as well as choose whether to display headers and footers. Execute the report with the settings…
Read MoreAdvanced Databases – Insert, delete a data field in group, page, report headers and footers.
Create a report in wizard mode, select the table Car and owner details and add the first 5 fields only. Click Next twice. Add grouping levels for Surname and First Name. Click Next twice. Choose ‘Columnar, two columns’ layout. Click Next. Name the report. Select Dynamic report Select ‘Modify report layout’ Click Finish. Notice the…
Read MoreAdvanced Databases – Concatenate fields in a report.
Concatenate fields means to merge them together. There is no option to do this automatically in Base, so we first have to create a query in design mode. Add the Car and owner details table. We want to merge First Name and Surname fields. In the Field column type: “First Name” || ‘ ‘ ||…
Read MoreAdvanced Database – Apply a running sum for a group, over all.
In Libreoffice Base, there is no automatic option to do this in a report. We must first create a query that we will then use to run a report. Create a new query in design view. Add the table Job Costs twice, the reason for this will be explained shortly. Creating a query that gives…
Read MoreAdvanced Database – Format arithmetic calculation controls in a report
We are going to use the query that we created in a previous tutorial. The query is shown to the left, it calculates the total hours worked on each job for each member of staff. Then the query calculates and displays the average number of hours worked for each staff member. We are going to…
Read More