210 likes | 350 Views
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.
E N D
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
Form Properties • Format • Data • Event • Other
Creating a Form • Form/New • Design View • Form Wizard • Auto Forms • Customize the Generated Form using the Design View
Add Additional Controls • Examples: • Toolbox • Textbox with expression • =Count(SID) • =IIF(GPA < 2.0,”Bad”,”Good”)
Data Validation • Table design view • Form • Textbox Data tab
Conditional Formatting • At form design view: • Format/Conditional formatting
ReadOnly Form • Form properties: • Form/Data: • Set no to: Allow Edit, Allow delete, Allow Deletion, Data Entry
Main/Sub Form • 1. Create a join query and use the join query to create a form. • 2. Using Form Wizard: • Add two tables
Main/SubForm with Total • Create a textbox in subform’s form footer: =Count(sid) • Create a textbox in main form’s footer: = [subform name],[Form]!TextBoxName
Form Design View • ToolBox and Wizards
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
Creating Reports • Design view • Format/Condition formatting • Group subtotal • Adding textbox • Report Wizard
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