55
WORKING WITH OPENOFFICE.ORG BASE MELJUN CORTES MELJUN CORTES

MELJUN CORTES Open Office Lecture

Embed Size (px)

DESCRIPTION

MELJUN CORTES Open Office Lecture

Citation preview

Page 1: MELJUN CORTES Open Office Lecture

WORKING WITH OPENOFFICE.ORG BASE

MELJUN CORTESMELJUN CORTES

Page 2: MELJUN CORTES Open Office Lecture

2

OPENOFFICE.ORG BASEOPENOFFICE.ORG BASEIt is the Database component of the OpenOffice.org.

It is the counterpart of Microsoft Access.

Allows the creation and manipulation of databases, and the building of forms and reports to provide easy access to data for end-users.

It may be used as a front-end to a number of different database systems, including Access databases (JET), ODBC data sources and MySQL/PostgreSQL.

Page 3: MELJUN CORTES Open Office Lecture

3

Page 4: MELJUN CORTES Open Office Lecture

4

CREATING A DATABASE IN CREATING A DATABASE IN OPENOFFICE.ORG BASEOPENOFFICE.ORG BASE

Page 5: MELJUN CORTES Open Office Lecture

5

In the Database Wizard, select the Create a new database option and click the Next button.

Page 6: MELJUN CORTES Open Office Lecture

6

Select the No, do not register the database option and check the Open the database for editing checkbox. Then, click the Finish button.

Page 7: MELJUN CORTES Open Office Lecture

7

In the Save in pull down box, choose the folder where you will save the database.

Page 8: MELJUN CORTES Open Office Lecture

8

OpenOffice.org Base window will now appear on-screen.

DATABASE PANE

TASK PANE

FORM PANE

STANDARD BAR

TABLE BAR

Page 9: MELJUN CORTES Open Office Lecture

9

CREATING TABLE USING CREATING TABLE USING THE DESIGN VIEWTHE DESIGN VIEW

Click the Tables in the Database pane. Then in the Task pane, click the Create Table in Design View.

The Table Design view will appear. Type the following fields, their data types and descriptions as shown on the next Figure except the Student ID. In their Field Properties change the Entry Required to Yes.

Click the File menu and Save command or click the Save button to save your table.

Page 10: MELJUN CORTES Open Office Lecture

10

Page 11: MELJUN CORTES Open Office Lecture

11

A message box will appear asking if you want to create a primary key now. Click the Yes button.

Change the primary key field ID to StudentID. In the Field Properties, change the Field Format example to 0000-000000. Press the Ctrl+Shift+S or click the Save button to resave the table.

Click the File menu and Close command to close the table. You will now go back to the OpenOffice.org Base main window.

Double click the table you previously saved and you will now see the datasheet. Type the following records:

Page 12: MELJUN CORTES Open Office Lecture

12

Page 13: MELJUN CORTES Open Office Lecture

13

Save and close your table. Then, make sure to save your database before you quit OpenOffice.org Base.

Page 14: MELJUN CORTES Open Office Lecture

14

Click the Tables in the Database pane. Then in the Tasks pane, click the Use Wizard to Create Table. The Table Wizard will then appear.

CREATING TABLE USING CREATING TABLE USING THE TABLE WIZARDTHE TABLE WIZARD

Page 15: MELJUN CORTES Open Office Lecture

15

In the Table Wizard, select the Employees in the Sample tables. Select the following fields: EmployeeID, FirstName, MiddleName, LastName, Address, City, PhoneNumber and EmailAddress. Then, click the Next>> button.

Page 16: MELJUN CORTES Open Office Lecture

16

In the Set types and formats, change the EmployeeID field to StudentID. In the PhoneNumber, change the field type to Integer. Change all the Entry Required to Yes. Then, click the Next>> button.

Page 17: MELJUN CORTES Open Office Lecture

17

In the Set primary key, select the Use an existing field as primary key option and StudentID in the Fieldname. Then, click the Next>> button.

Page 18: MELJUN CORTES Open Office Lecture

18

In Create table, name your table. Select the Insert data immediately and the Modify the table design options. Then, click the Finish button.

Page 19: MELJUN CORTES Open Office Lecture

19

The Table design view will appear. Change the Format example to 0000-000000 in Field Properties of StudentID. Click the Save button to resave the table then close the table.

Page 20: MELJUN CORTES Open Office Lecture

20

Double click the 2nd table and type the following records.

Make sure to press Ctrl+S or click the Save Current Record button to save your table.

Close the table after typing.

Page 21: MELJUN CORTES Open Office Lecture

21

Page 22: MELJUN CORTES Open Office Lecture

22

MODIFYING THE FIELD MODIFYING THE FIELD PROPERTIESPROPERTIES

Click the Tables in the Database pane. Then, in the Tables pane, right click the first table (e.g. TB01RA28) then choose the Edit command. The Table Design will then appear.

In the Table Design, click each given field name and modify the field properties as shown in the next table.

Page 23: MELJUN CORTES Open Office Lecture

23

Page 24: MELJUN CORTES Open Office Lecture

24

Modify the field properties on the second table (e.g. TB02RA28). Save and close the table design.

Page 25: MELJUN CORTES Open Office Lecture

25

CREATING QUERIES USING CREATING QUERIES USING THE DESIGN VIEWTHE DESIGN VIEWClick the Queries in the Database pane. Then, in the Tasks pane, click the Create Query in the Design View. The Add Table or Query dialog box will then appear.

Page 26: MELJUN CORTES Open Office Lecture

26

In the Add Table or Query dialog box, make sure to select the Tables option and the table you need. Then, click the Add button.

Once you see a miniature copy of the table appear in the screen, click the Close button.

Page 27: MELJUN CORTES Open Office Lecture

27

Select the Fields, Tables, Sort, Visible and the criteria that you need for the query.

Page 28: MELJUN CORTES Open Office Lecture

28

Click the Edit menu and Run Query command. The output of query will now appear.

Page 29: MELJUN CORTES Open Office Lecture

29

Press Ctrl+S to save the query. Click the OK button.

Close the query.

Page 30: MELJUN CORTES Open Office Lecture

30

Click the Queries in the Database pane. Then, in the Tasks pane, click the Create Query in the Design View. The Add Table or Query dialog box will then appear.

CREATING QUERIES USING CREATING QUERIES USING THE QUERY WIZARDTHE QUERY WIZARD

Page 31: MELJUN CORTES Open Office Lecture

31

In the Query Wizard, make sure to select the table you need in the Tables scroll box. To select all the fields, click the Select All >> button. Then, click the Next button.

Page 32: MELJUN CORTES Open Office Lecture

32

Sort the table by City in ascending order and by StudentID in descending order. Then, click the Next button.

Page 33: MELJUN CORTES Open Office Lecture

33

Select the option Match all of the following. Choose City in the Fields scroll box. Choose is equal to in Condition and in the Value, type Manila. Then, click the Next button.

Page 34: MELJUN CORTES Open Office Lecture

34

Select the Detailed query option. Then, click the Next button.

Page 35: MELJUN CORTES Open Office Lecture

35

In the Alias, do not change anything. Then, click the Next button.

Page 36: MELJUN CORTES Open Office Lecture

36

In the Name of the query, type the query name. Select the Display Query option. Then, click the Finish button.

Page 37: MELJUN CORTES Open Office Lecture

37

The result of the query will now appear.

Page 38: MELJUN CORTES Open Office Lecture

38

CREATING A FORM USING CREATING A FORM USING THE FORM WIZARDTHE FORM WIZARDClick the Forms in the Database pane. Then, in the Tasks pane, click the Use Wizard to Create Form. The text area of OpenOffice.org Writer will then appear on the background together with the Form Wizard dialog box.

Page 39: MELJUN CORTES Open Office Lecture

39

In the Tables or queries, select the second table (e.g. TB02RA28). Click the Select All >> button in the Available fields. Then, click the Next> button twice to ignore the Set up a subform step.

Page 40: MELJUN CORTES Open Office Lecture

40

In the Arrange controls, select the Columnar - Labels Left option. Then, click the Next> button.

Page 41: MELJUN CORTES Open Office Lecture

41

In the Set data entry select the option The form is to display all data. Check the Do not allow deletion of existing data check box. Then, click the Next> button.

Page 42: MELJUN CORTES Open Office Lecture

42

In the Apply styles, select the Violet style and the 3D look option. Then, click the Next> button.

Page 43: MELJUN CORTES Open Office Lecture

43

In the Set name, type the name for the second form (e.g. FR02RA28). Select the Modify the form option. Then, click the Finish button.

Page 44: MELJUN CORTES Open Office Lecture

44

The form design will now appear. Use the Gallery button to add a logo. Use the Label Field button in the Control Form bar to type Triple A University.

Page 45: MELJUN CORTES Open Office Lecture

45

Modify all the labels and text boxes according to the format that suits you. Then, save and close the form.

Select the second form (e.g. FR02RA28) and double click it. The form layout will now appear showing the current record selected.

Page 46: MELJUN CORTES Open Office Lecture

46

CREATING A REPORT USING CREATING A REPORT USING THE REPORT WIZARDTHE REPORT WIZARDClick the Reports in the Database pane. Then, in the Tasks pane, click the Use Wizard to Create Report. The Report Wizard will appear.

Page 47: MELJUN CORTES Open Office Lecture

47

In the Tables or queries, select the first table (e.g. TB01RA28). Click the Select All >> button in the Available fields. Then, click the Next> button.

Page 48: MELJUN CORTES Open Office Lecture

48

In the Labeling fields, do not change anything and click the Next> button.

Page 49: MELJUN CORTES Open Office Lecture

49

In Grouping, select the StudentStatus and Course. Then, click the Next> button.

Page 50: MELJUN CORTES Open Office Lecture

50

In Sort options, the StudentStatus and Course will be automatically arranged in ascending order. Select the StudentID and ascending order in the third option. Then, click the Next> button.

Page 51: MELJUN CORTES Open Office Lecture

51

In Choose Layout, select the Outline – Compact data layout and the Bubbles headers and footers layout. In Orientation, select the Portrait option. Click the Next> button.

Page 52: MELJUN CORTES Open Office Lecture

52

In Create report, type the Title of the report. Select the Dynamic report and the Create report now options. Click the Finish button.

Page 53: MELJUN CORTES Open Office Lecture

53

The output of your report will now appear. Close the report and save the database.

Page 54: MELJUN CORTES Open Office Lecture

54

Right click the report in the Reports pane and choose the Edit command to modify the report.

Select any object either in the Gallery or the Drawing bar to serve as the logo. Type Triple A University as the company name. Change the format of the report according to what you want. Save and close the report.

Close and save the database.

Page 55: MELJUN CORTES Open Office Lecture

55