![Page 1: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/1.jpg)
1
Research Papers Database
![Page 2: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/2.jpg)
2
Research Papers Database
• Form– Add– Delete– Change… information in the database
![Page 3: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/3.jpg)
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
![Page 4: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/4.jpg)
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
![Page 5: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/5.jpg)
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)
![Page 6: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/6.jpg)
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
![Page 7: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/7.jpg)
7
Controls and Properties
Control
Properties
![Page 8: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/8.jpg)
8
Bound Form in Design View
NOTE: see next slide for directions to create this form
![Page 9: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/9.jpg)
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
![Page 10: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/10.jpg)
10
Properties of the Form Control
![Page 11: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/11.jpg)
11
Control Source for FirstName Property
![Page 12: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/12.jpg)
12
Control Source for FirstName Property
NO means:You can't move the focus to the control by pressing the TAB key.
![Page 13: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/13.jpg)
13
Control Source for FirstName Property
![Page 14: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/14.jpg)
14
Main Form Design
![Page 15: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/15.jpg)
15
Create the Charges Sub Form
![Page 16: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/16.jpg)
16
Add the Charges Sub Form to the Main Form (Client)
Name may be different
![Page 17: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/17.jpg)
17
Charges Subform Property Sheet
![Page 18: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/18.jpg)
18
Use the PaymentType Query
Choose ALLFields!
![Page 19: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/19.jpg)
19
PaymentMethods Query
![Page 20: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database](https://reader035.vdocument.in/reader035/viewer/2022062504/5a4d1b547f8b9ab0599a8903/html5/thumbnails/20.jpg)
20
Completed Form