Date post: | 18-Jan-2018 |
Category: |
Documents |
Upload: | harvey-parks |
View: | 217 times |
Download: | 0 times |
1
Research Papers Database
2
Research Papers Database
• Form– Add– Delete– Change… information in the database
3
Forms• Datasheet View similar to the datasheet view of a table…
similar to an excel spreadsheet• Use forms to add, change, delete info in DB• Form in Datasheet View– Default Form
• Created when database created
• Custom Form– More flexible– More Control
• Permissions Not every should see payroll info, but someone in the payroll office should have that capability
4
Main Forms and Subforms
Main Form
Two Subforms: Charges and Payments
Subform part of a main form and displays info about the current record in the main form
5
Controls and Properties• Controls let you view and work with data
in your database application. The most frequently used control is the text box, but her controls include command buttons, labels, check boxes, and subform/subreport controls.
• Controls can be bound or unbound (or calculated)
6
Bound Form Vs Unbound Form
• All forms have controls and each form can have many properties.
• Bound Form– Controls are directly connected to a field in the database
or query.• Unbound Form– Are not directly connected to a field in the database or
query.– The database fields will need to be manually connected to
the database via SQL in your VBA Code
7
Controls and Properties
Control
Properties
8
Bound Form in Design View
NOTE: see next slide for directions to create this form
9
Create a Form
• Create basic form using the form wizard. This will be your main form. (You can create a new blank form, but it is much easier to make changes to an existing form instead of creating an entirely new one.)– Create Form Wizard– Tables/Queries: Client– Move ClientID, FirstName, and LastName fields from Available
to Selected– Form Layout: Columnar– Form Name: Client– Select Modify the form’s design, and click Finish
10
Properties of the Form Control
11
Control Source for FirstName Property
12
Control Source for FirstName Property
NO means:You can't move the focus to the control by pressing the TAB key.
13
Control Source for FirstName Property
14
Main Form Design
15
Create the Charges Sub Form
16
Add the Charges Sub Form to the Main Form (Client)
Name may be different
17
Charges Subform Property Sheet
18
Use the PaymentType Query
Choose ALLFields!
19
PaymentMethods Query
20
Completed Form