Locked lesson.
About this lesson
Make design changes to a form using Layout View.
Exercise files
Download this lesson’s related exercise files.
7.05 forms-in-layout-view-part2 - Exercise.docx55.1 KB 7.05 forms-in-layout-view-part2 - Exercise solution.docx
64 KB TechGurusTicketing17.accdb
792 KB TechGurusTicketing17 - Complete.accdb
800 KB
Quick reference
Forms in Layout View - Part 2
Use the Property Sheet to name fields and labels using the correct naming convention and protect the table by disabling fields.
When to use
We edit the properties of a field whenever we want to change the way the field looks and behaves.
Instructions
Editing Field Properties
We can edit any field in a table, simply by selecting it and adjusting the properties in the Property Sheet.
- Open up the Property Sheet for table 'frmTicketMaintenance'.
- Click on the ID field. Review the properties for this field.
- Click on the ID label. Review the properties for this label.
Labels in Access are given generic names, 'label1', 'label2' etc. This makes them difficult to identify so it's recommended that we rename these.
- In the Property Sheet, select the All tab.
- Change the label name to 'IDLabel'.
In general, text that will not be seen by users and exists solely in the database backend should have no spaces or the words should be separated with underscores.
- Click on the 'TicketNumber' label.
- Change the label name to 'TicketNumberLabel'.
- Rename all labels in the table.
The caption shows us how the label will display to the user.
- Click on the 'TicketNumber' label.
- Change the caption to 'Ticket Number'.
Protecting Fields
We may not always want every field in a table to be editable. This can be dangerous, particularly in terms of the ID field. We can effectively 'lock it down' by disabling access to the field.
- Select the 'ID' field.
- In the Property Sheet, change Enabled from Yes to No.
- Right-click on the tab and select Form View.
- Ensure that editing is now disabled for the 'ID' field.
Incomplete Records
- From the Record Selector, click New (blank) Record.
An ID will not be assigned to a new record until information is entered into another field. If we get partway through entering a record and want to undo, we need to press the ESC key.
Login to downloadLesson notes are only available for subscribers.