Database Systems Introduction to Microsoft Access Part 3

48
1 Database Systems Introduction to Microsoft Access Part 3

description

Database Systems Introduction to Microsoft Access Part 3. Create Form by Using Wizard. Create Form by Using Wizard. Create Form by Using Wizard. Create Form in Design View. Create Form in Design View. Sample Form. Adding Records Using A Form. Form Controls. Reports. Reports. - PowerPoint PPT Presentation

Transcript of Database Systems Introduction to Microsoft Access Part 3

Page 1: Database Systems Introduction to Microsoft Access Part 3

1

Database Systems

Introduction toMicrosoft Access

Part 3

Page 2: Database Systems Introduction to Microsoft Access Part 3

2

Create Form by Using Wizard

Page 3: Database Systems Introduction to Microsoft Access Part 3

3

Create Form by Using Wizard

Page 4: Database Systems Introduction to Microsoft Access Part 3

4

Create Form by Using Wizard

Page 5: Database Systems Introduction to Microsoft Access Part 3

5

Create Form in Design View

Page 6: Database Systems Introduction to Microsoft Access Part 3

6

Create Form in Design View

Page 7: Database Systems Introduction to Microsoft Access Part 3

7

Sample Form

Page 8: Database Systems Introduction to Microsoft Access Part 3

8

Adding Records Using A Form

Page 9: Database Systems Introduction to Microsoft Access Part 3

9

Form Controls

Page 10: Database Systems Introduction to Microsoft Access Part 3

10

Reports

Page 11: Database Systems Introduction to Microsoft Access Part 3

11

Reports

Page 12: Database Systems Introduction to Microsoft Access Part 3

12

An Access Report with All Sections Shown

Page 13: Database Systems Introduction to Microsoft Access Part 3

13

Exporting Access Query to Excel Workbook File

Page 14: Database Systems Introduction to Microsoft Access Part 3

14

Reposition and Resize Controls in Subreport

Page 15: Database Systems Introduction to Microsoft Access Part 3

15

Query Data Exported to an Excel Worksheet

Page 16: Database Systems Introduction to Microsoft Access Part 3

16

Import Data from Other Applications as an Access Table

• You can import data from a variety of other applications, including Excel lists, as an Access table.

• If you import data from an Excel list, be sure that the range of the list is named before attempting to import the data in the list.

Page 17: Database Systems Introduction to Microsoft Access Part 3

17

Import Spreadsheet Wizard Dialog Box

Page 18: Database Systems Introduction to Microsoft Access Part 3

18

First Row Contains Column Headings

Page 19: Database Systems Introduction to Microsoft Access Part 3

19

“Choose primary key” Option

Page 20: Database Systems Introduction to Microsoft Access Part 3

20

Imported Trial Balance Table in Datasheet View

Page 21: Database Systems Introduction to Microsoft Access Part 3

21

Macros in Microsoft Access

• Use to Open or Close Forms and Reports

• Print Reports, or send to other Applications

• Build Menus • Execute a command from a Menu

• Display Messages or Sound Beeps

• Start Other Applications

Page 22: Database Systems Introduction to Microsoft Access Part 3

22

A Simple Button Menu Form

Open Form A

Open Form B

Exit

Page 23: Database Systems Introduction to Microsoft Access Part 3

23

Button for Form A

Page 24: Database Systems Introduction to Microsoft Access Part 3

24

Name the Button and Finish

Page 25: Database Systems Introduction to Microsoft Access Part 3

25

The Button to Open Form A

Page 26: Database Systems Introduction to Microsoft Access Part 3

26

Button Wizard gives VB Event Procedure

Page 27: Database Systems Introduction to Microsoft Access Part 3

27

Event Procedure for the OpenA Button

Page 28: Database Systems Introduction to Microsoft Access Part 3

28

Cancel Wizard to Define a OpenB

Wizard Off

AdjustSize

OpenB

Open Form B

Page 29: Database Systems Introduction to Microsoft Access Part 3

29

Define a Macro for OpenB OnClick Event

ClickDots

SelectMacro

Click

Page 30: Database Systems Introduction to Microsoft Access Part 3

30

Name the Macro

ClickOpen Form B

Page 31: Database Systems Introduction to Microsoft Access Part 3

31

Select OpenForm

Click

Page 32: Database Systems Introduction to Microsoft Access Part 3

32

Macro: Open Form B

FormB

Click

Page 33: Database Systems Introduction to Microsoft Access Part 3

33

System Check

Click

Page 34: Database Systems Introduction to Microsoft Access Part 3

34

Add the Exit Button

Click

WizardOn

Click

Page 35: Database Systems Introduction to Microsoft Access Part 3

35

The Exit Button

Page 36: Database Systems Introduction to Microsoft Access Part 3

36

Exit.OnClick Event Procedure

Page 37: Database Systems Introduction to Microsoft Access Part 3

37

Run the Simple Menu

Click

Page 38: Database Systems Introduction to Microsoft Access Part 3

38

Event Procedure - Form A

Page 39: Database Systems Introduction to Microsoft Access Part 3

39

Event Macro - Form B

Page 40: Database Systems Introduction to Microsoft Access Part 3

40

Form with Local Event Procedures

Page 41: Database Systems Introduction to Microsoft Access Part 3

41

Local Event Procedures or Functions

Click

Page 42: Database Systems Introduction to Microsoft Access Part 3

42

Local VBA Code

Page 43: Database Systems Introduction to Microsoft Access Part 3

43

Module Area

Page 44: Database Systems Introduction to Microsoft Access Part 3

44

Global Values and Procedures

Page 45: Database Systems Introduction to Microsoft Access Part 3

45

How Big with Access

There are file size limitations with MS Access.

Tables 95Queries 29Forms 511Reports 185Code 500 (200,000 statements)

Table Space 800MbCode Space 60Mb

Page 46: Database Systems Introduction to Microsoft Access Part 3

46

Garbage Collection

Regular Compacting is required to keep size down.

(Tools/Utilities/Compact)

Page 47: Database Systems Introduction to Microsoft Access Part 3

47

MS Access - Offers

TablesDatabase Table Definition/Entry

Queries SQL Queries against Tables

Forms Forms to be displayed

Reports Reports to be Printed

Macros Macro Commands

Modules Visual Basic Code

Page 48: Database Systems Introduction to Microsoft Access Part 3

48

End of Lecture

• MS Access is include with some versions of MS Office. It can be learned by experimentation.

• MS Access is not a full featured database like Oracle but it comes very close and is a good alternative for the PC desktop environment.