Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats...

9
Forms

Transcript of Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats...

Page 1: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Forms

Page 2: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Use underlying tables

Owners form - add data to Owners table Cats form - add data to Cats table Record Source Property

– Record source is a table or query e.g Bookings table

Page 3: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Data Model Diagram

Cats Owners

Bookings

Page 4: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Where forms can help

Data Entry e.g entered owners names etc. Data validation - select from valid list Calculations

Page 5: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Data Entry

Boxes on form Type data in boxes Data is added to fields in table

– e.g cat’s names, owners first and last names

Page 6: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Data Validation

Combo Box object Get data fields from Owners Table Need to store Ownerid so box must be bound

to Ownerid field Ownerid is the Control Source Property of

the object Combo box displays pick list (Access jargon

for a menu)

Page 7: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Calculations

Text box object Expressions used as control source

property Derived from data in the table Result displayed on the form - not stored in

the table

Page 8: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Expressions

Combination of operators, constants, literal values, functions, and names of fields, controls, and properties that evaluates to a single value.

Examples - see Help, Index, Expressions, Examples of Expressions

Page 9: Forms. Use underlying tables n Owners form - add data to Owners table n Cats form - add data to Cats table n Record Source Property – Record source is.

Our example includes

arithmetic operators – multiplication (*)– Division (/)– Addition (+)– Subtraction (-)

can include field names from the record source table– e.g [NoOfCats]