20
DAY 20: ACCESS CHAPTER 4 RAHUL KAVI [email protected] October 22, 2013 1

Day 20: Access Chapter 4

  • Upload
    gada

  • View
    56

  • Download
    1

Embed Size (px)

DESCRIPTION

Day 20: Access Chapter 4. RAHUL KAVI [email protected] October 22, 2013. Last class. Calculated fields In queries In tables Functions DateDiff , Now Aggregate(Summary) queries Lookup fields. Today’s class. IFF function (calculated fields in Queries) Forms Creating Forms - PowerPoint PPT Presentation

Citation preview

Page 1: Day 20: Access Chapter 4

DAY 20:ACCESS CHAPTER 4

RAHUL [email protected] 22, 2013

1

Page 2: Day 20: Access Chapter 4

2

LAST CLASS

• Calculated fields– In queries– In tables

• Functions– DateDiff, Now

• Aggregate(Summary) queries• Lookup fields

Page 3: Day 20: Access Chapter 4

3

TODAY’S CLASS

• IFF function (calculated fields in Queries)• Forms• Creating Forms• Form Wizard• Blank Forms, Split Forms, Multiple item

Forms, etc.• Designing and editing Forms.

Page 4: Day 20: Access Chapter 4

4

IFF FUNCTION

• Syntax of IFF function:Iff(<variable1> condition <variable2>, true_part, else_part)

• Example 1: = IIF([ShippingDate<Date(), “Shipped”, “Not Shipped”)

• Example 2: =IIF([ShippingDate]<Date(), “Shipped”, IFF([ShippingDate]=Date(), “Shipping today”, “Unshipped”))

Page 5: Day 20: Access Chapter 4

5

FORMS

• A form is a database object used to add or edit data in a table

• There are three reasons for using forms to add or edit data:– You are less likely to edit the wrong record by

mistake– You can create a form that shows data from more

than one table simultaneously– You can create Access forms to match paper forms

Page 6: Day 20: Access Chapter 4

6

FORMS

• Too much data in one form will confuse users.

• Use one form for each task.

Page 7: Day 20: Access Chapter 4

7

CREATING BASIC FORMS

• Create->Forms– >Form– >Form Design– >Blank Form– >Form Wizard

Page 8: Day 20: Access Chapter 4

8

CREATE->FORMS->FORM

• Creates a form for the currently selected table– It will also include a subform for any table that

has a foreign key that is related to the main table

Page 9: Day 20: Access Chapter 4

9

CREATE->FORMS->FORM DESIGN

• Creates a new, blank form in design view– Design view allows you to add labels and

fields and place them how you would like

Page 10: Day 20: Access Chapter 4

10

CREATE->FORMS->BLANK FORM

• Creates a new, blank form in layout view– Layout view allows you to add labels and

fields, but it automatically places them based on the style

– Form Layout Tools->Arrange->Table• Stacked (default)• Tabular

Page 11: Day 20: Access Chapter 4

11

CREATE->FORMS->FORM WIZARD

• Create a form using any combination of fields from any number of tables– Allows you to select how to group things for

subforms– Example: Songs grouped by Album

Page 12: Day 20: Access Chapter 4

12

SPLIT FORMS

• Split forms combine a form with a datasheet view of the table– Create->Forms->More Forms->Split Form– Creates a split form for the selected table– You can navigate to different records with the

normal navigation buttons, or selecting the record from the datasheet view

Page 13: Day 20: Access Chapter 4

13

MULTIPLE ITEMS FORMS

• Multiple items forms are similar to datasheet view, but allow you to customize the fields and layout

• Create->Forms->More Forms->Multiple Items

Page 14: Day 20: Access Chapter 4

14

DATASHEET FORM

• Datasheet forms are even more like datasheet views than multiple item forms

• While you can still edit the fields and their order, the layout is exactly like datasheet views on tables

• Like all forms, allows you to include fields from multiple tables

Page 15: Day 20: Access Chapter 4

15

EDITING FORMS

• Add fields• Delete fields• Layout Control

– Remove layout– Add layout

• Adjust width• Add a theme

Page 16: Day 20: Access Chapter 4

16

SORTING RECORDS

• From form view, do one of the following:– Right click, select sorting order– Select field (be careful with yes/no fields as

selecting them will change the value), then Home->Sort & Filter->Ascending or Descending

Page 17: Day 20: Access Chapter 4

17

FORM SECTIONS

• Forms have 3 sections… header, footer, and detail

• These sections can be seen and edited in Design View

Page 18: Day 20: Access Chapter 4

18

IMPORTANT CONTROL TYPES

• Text box• Label• Button• Tab• Toggle button

• List box• Check box• Option button• Subform

Page 19: Day 20: Access Chapter 4

19

NEXT CLASS

• Reports– Create, modify– Sorting– Report sections– Control Types

Page 20: Day 20: Access Chapter 4