access chapter 4-form and report basics. pgp mis 342 access4-2 forms used to maintain...

15
Access Chapter 4-Form and Report Basics

Upload: charles-butler

Post on 18-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

Access

Chapter 4-Form and Report Basics

Page 2: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-2

Forms

Used to maintain (add/delete/edit) the data in underlying tables

Wizards-show typical layouts AutoFormat, to try different layouts quickly

Finding data using Find dialog box Note available wildcard characters *, ?, [], !, -,#

Page 3: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-3

Wildcard Characters

Page 4: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-4

Forms

Note how to print only one form record using Print, Selected Record(s)

Page 5: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-5

Forms and SubForms

Use to show data from related tables Tables have one to many relationship Example, View the many orders for one

customer Display a lot of data in a small space

Page 6: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-6

Forms and SubForms

Main form can have any number of subforms if you place each subform on the main form.

You can nest up to ten levels of subforms. You could have a main form that displays customers, a subform that displays orders, and another subform that displays order details

Page 7: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-7

Forms and SubForms

Be aware-multiple sets of navigation buttons can confuse end users

Realize common field provides linkage Link master/child fields properties controls

linkage Index linked field to speed performance

Subforms-effective to show data from tables or queries with a one-to-many relationship

Page 8: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-8

Form/SubForms Example

Open Northwind.mdb, Forms, ‘Customer Orders’

Page 9: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-9

Form/SubForms Example

Form contains Customers table fields: CompanyName Country

This form is linked to subForm ‘Customer Orders Subform1’

Page 10: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-10

Form/SubForms Example

Subform1 contains Orders table fields: OrderID RequiredDate

This subform is linked to subForm ‘Customer Orders Subform2’

Page 11: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-11

Form/SubForms Example

Subform2 contains OrderDetailsExtended query fields: ProductName UnitPrice Quantity Discount Extended Price (a calculated field)

Note-this query is based on the tables ‘Order Details’ and ‘Products’

Page 12: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-12

Form/Subform Relationships

Page 13: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-13

Reports

Typically destined for printed output Can be based on table(s) or query or SQL

statement Report Wizard to do most of the work Modify in Design View for the finishing

touches

Page 14: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-14

Reports and Forms- Design View

Wizards can do most of the work, but to tailor forms/reports to what you want, you must understand how to modify them in Design View

Examine property settings-similar to Visual Basic forms and controls

Page 15: Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show

PgP MIS 342 Access 4-15

Report and Form Graphics

Graphics can improve appearance, but Possible performance penalty Be aware of “Image” object “SizeMode”

property settings of clip, stretch, zoom