+ All Categories
Home > Documents > 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

Date post: 18-Jan-2018
Category:
Upload: harvey-parks
View: 217 times
Download: 0 times
Share this document with a friend
Description:
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 3
20
1 Research Papers Database
Transcript
Page 1: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

1

Research Papers Database

Page 2: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

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.

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.

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.

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.

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.

7

Controls and Properties

Control

Properties

Page 8: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

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.

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.

10

Properties of the Form Control

Page 11: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

11

Control Source for FirstName Property

Page 12: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

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.

13

Control Source for FirstName Property

Page 14: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

14

Main Form Design

Page 15: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

15

Create the Charges Sub Form

Page 16: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

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.

17

Charges Subform Property Sheet

Page 18: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

18

Use the PaymentType Query

Choose ALLFields!

Page 19: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

19

PaymentMethods Query

Page 20: 1 Research Papers Database. 2 Form – Add – Delete – Change … information in the database.

20

Completed Form


Recommended