Download Bound Forms Lecture

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

SQL wikipedia , lookup

Microsoft Access wikipedia , lookup

Serializability wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Oracle Database wikipedia , lookup

IMDb wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Ingres (database) wikipedia , lookup

Functional Database Model wikipedia , lookup

Database wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Relational model wikipedia , lookup

Versant Object Database wikipedia , lookup

Database model wikipedia , lookup

Clusterpoint wikipedia , lookup

Concurrency control wikipedia , lookup

ContactPoint wikipedia , lookup

Transcript
Research Papers Database
1
Research Papers Database
• Form
– Add
– Delete
– Change
… information
in the database
2
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
Main Forms and Subforms
Main Form
Subform  part of
a main form and
displays info about
the current record
in the main form
Two Subforms:
Charges and Payments
4
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)
5
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
6
Controls and Properties
Properties
Control
7
Bound Form in Design View
NOTE: see next slide for directions to create this form
8
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
9
Properties of the Form Control
10
Control Source for FirstName Property
11
Control Source for FirstName Property
NO means:
You can't move the
focus to the control
by pressing the TAB
key.
12
Control Source for FirstName Property
13
Main Form Design
14
Create the Charges Sub Form
15
Add the Charges Sub Form to the
Main Form (Client)
Name may be different
16
Charges Subform Property Sheet
17
Use the PaymentType Query
Choose
ALL
Fields!
18
PaymentMethods Query
19
Completed Form
20