Creating A Data Entry Form With A Subform

From NeoWiki

Revision as of 15:27, 19 September 2007 by Lorinda (Talk | contribs)
Jump to: navigation, search
This article is part of the To Base and Back Again tutorial series.

Contents

Creating the Form

The data entry form the birder will use on return from a field trip must allow for data entry into two different tables: The Field Trips table and the Sightings Table. For every record in the Field Trips table, there will be multiple entries in the Sightings table. So we need to create a form based on the Field Trips table with a sub-form based on the Sightings table.

  1. Open the database document
  2. Click on the Forms icon in the left column of the main database document window
  3. In the Tasks section, click on Use Wizard to Create Form...
  4. In the Tables or Queries drop-down, choose Table: Field Trips
  5. Click on the >> button to move all the field over
  6. Use the up or down arrow buttons to change the field order if need be
  7. Click Next>
  8. Check the Add Subform checkbox
  9. Click in the Subform based on existing relation radio button
  10. Select Sightings in the box next to the question Which relation do you want to use?
  11. Click Next>
  12. Note that the correct table is chosen in the drop-down
  13. Click the >> Button to move all the fields over
  14. Use the up or down arrow buttons to change the field order if need be
  15. Click Next>
  16. Choose the Arrangement of the main form I chose the option furthest to the right, labeled In Blocks-Labels Above
  17. Choose the Arrangement of the subform I reccommend the third option, labeled As Data Sheet
  18. Click Next>
  19. Set the Data Entry Mode. I set it for This form is to display all data and left all the boxes unchecked.
  20. Click Next>
  21. Select the background color and style you want.
  22. Click Next>
  23. Enter the name of the form, and decide if you want to work with it (i.e. enter data) or modify it (i.e. edit the layout).
  24. Click Finish

Entering Data

If you are creating this database as you follow the tutorial, you will need to enter data into this form, for use in future exercises. Enter the following data for two field trips. You may wish to wait to do this until you have completed the instructions on the Using Combo Boxes in a Form page, as this will simplify entering the bird names.

First Field Trip

In the top part of the form, enter the following data:

Date 01/01/1900
StartTime 5:30 AM
EndTime 8:30 AM
Weather Sunny
Wind None
Temperature 10
Location Clamath Falls

Note that the ID field is automatically entered. For fields not listed above (Comments, Participants), you may enter any data you would like.

In the sightings subform, enter the data as follows:

American Wigeon; check Male, Female, and Sight
Blue Jay: check Voice
Eastern Bluebird: check Male and Sight
Golden Eagle: check Female and Sight
Great Blue Heron: check sight
Killdeer: check Sight and Voice
Tufted Titmouse: check Sight
Wood Duck: check Male, Female, and Sight.

Note that both the Sightings ID and Field Trip ID fields are entered automatically.


This article in other languages: Français
Personal tools