Access Forms

21
Access Forms ISYS 562

description

Access Forms. ISYS 562. Components of a Form. Form Header, Form Footer Page Header, Page Footer Detail Section Controls. Bound and Unbound Forms. A bound form is a form that is tied to either a table or query. Form’s Record Source property Unbound form: Example: Switchboard. - PowerPoint PPT Presentation

Transcript of Access Forms

Page 1: Access Forms

Access Forms

ISYS 562

Page 2: Access Forms

Components of a Form

• Form Header, Form Footer• Page Header, Page Footer• Detail Section• Controls

Page 3: Access Forms

Bound and Unbound Forms

• A bound form is a form that is tied to either a table or query.– Form’s Record Source property

• Unbound form:– Example: Switchboard

Page 4: Access Forms

Form Properties

• Format• Data• Event• Other

Page 5: Access Forms

Creating a Form

• Form/New– Design View– Form Wizard– Auto Forms

• Customize the Generated Form using the Design View

Page 6: Access Forms

Add Additional Controls

• Examples:– Toolbox

• Textbox with expression– =Count(SID)– =IIF(GPA < 2.0,”Bad”,”Good”)

Page 7: Access Forms

Data Validation

• Table design view• Form

– Textbox Data tab

Page 8: Access Forms

Conditional Formatting

• At form design view:– Format/Conditional formatting

Page 9: Access Forms

ReadOnly Form

• Form properties:– Form/Data:

– Set no to: Allow Edit, Allow delete, Allow Deletion, Data Entry

Page 10: Access Forms

Main/Sub Form

• 1. Create a join query and use the join query to create a form.

• 2. Using Form Wizard:– Add two tables

Page 11: Access Forms

Main/SubForm with Total

1. Create a textbox in subform’s form footer: =Count(sid)

2. Create a textbox in main form’s footer: = [subform name],[Form]!TextBoxName

Page 12: Access Forms

Form Design View

• ToolBox and Wizards

Page 13: Access Forms

ToolBox: View/Toolbar/ToolBox

Page 14: Access Forms

Command Button Wizard

Page 15: Access Forms

Option Group Wizard

Page 16: Access Forms

ComboBox Wizard

Page 17: Access Forms

ListBox Wizard

Page 18: Access Forms

Creating Reports

Page 19: Access Forms

Report Sections

• Report Header/Footer– View/Report Header, Footer

• Page Header/Footer– View/Page Header, Footer

• Group Header/Footer– View/Sorting and grouping

• Detail section

Page 20: Access Forms

Creating Reports

• Design view– Format/Condition formatting– Group subtotal

• Adding textbox

• Report Wizard

Page 21: Access Forms

SwitchBoard Manager

• Tools/Database Utilities/SwitchBoard Manager

• SwitchBoard window:– Main form– New: Add a new switchboard form– Edit: Edit items on a switchboard form

• Edit switchboard window:– New: Add a new item on a form– Edit