meljun cortes open office lecture

Post on 27-Jan-2015

103 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

MELJUN CORTES Open Office Lecture

TRANSCRIPT

WORKING WITH OPENOFFICE.ORG BASE

MELJUN CORTESMELJUN CORTES

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.

3

4

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

5

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

6

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

7

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

8

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

DATABASE PANE

TASK PANE

FORM PANE

STANDARD BAR

TABLE BAR

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.

10

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:

12

13

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

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

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.

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.

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.

18

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

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.

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.

21

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.

23

24

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

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.

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.

27

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

28

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

29

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

Close the query.

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

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.

32

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

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.

34

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

35

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

36

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

37

The result of the query will now appear.

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.

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.

40

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

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.

42

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

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.

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.

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.

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.

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.

48

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

49

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

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.

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.

52

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

53

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

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.

55

top related