In this task, you’ll add an index to a field and add data in the Access database.
Steps | Instructions | Results / Comments |
---|---|---|
1. |
Download and open the database titled LMT 5-3.accdb from the Student Files / Module 5 folder and save it to your personal folder. Note: Double-click the tbltrip table in the event that you see a blank screen. |
The database opens in Datasheet View. |
2. | Click Design View. |
The Design View is seen. |
3. |
Take a look at the Primary Key to the left of the record. |
|
4. |
Note that in Field Properties, for the Indexed property, the option is set to Yes (No Duplicates). |
|
5. | Click Datasheet View again. |
The Datasheet View of the database is seen. |
6. |
Click Click to Add and select Short Text. |
A column gets added with the title Field1. |
7. |
Type TripName and click the next cell. |
The TripName field is added. |
8. |
Switch back to Design View. |
The database opens in Design View. |
9. |
Click the Description box of the TripName and type Short name for this trip in the highlighted cell. |
The text appears under the Description column. |
10. |
Highlight the TripName field by selecting the row. |
The field is highlighted and field properties are displayed. |
11. |
Click the Required drop-down arrow in Field Properties and select Yes from the drop-down list. |
The Required property is set. |
12. |
Click the Allow Zero Length drop-down arrow and set it to No. |
The Allow Zero Length property is set. |
13. |
Check if Indexed is set to No. If not, set the property. |
The Indexed property is set. |
14. |
Click the Datasheet View button on the Status Bar. |
A dialog box for saving the table appears. |
15. | Click Yes to save the table. |
The Datasheet View opens. |
16. |
Note the star symbol next to the (New) record. Click the Code field cell and type LEX.
|
The pen icon appears to the left of the record to indicate the record is being worked on. |
17. |
Click the TripName cell and type Louisiana Explorer. |
The text appears in the TripName field. Note: It is likely that your ID number will be 1 as this is a new table. |
18. |
Adjust the column width by dragging the column pointer to the right to accommodate all the text. |
The full name is displayed in the cell. |
19. | Save the database and close Access. | The database closes. |