Locked lesson.
About this lesson
Continue editing the form in Design View.
Exercise files
Download this lesson’s related exercise files.
7.07 forms-in-design-view-part2 - Exercise.docx43.4 KB 7.07 forms-in-design-view-part2 - Exercise solution.docx
66.4 KB TechGurusTicketing19.accdb
820 KB TechGurusTicketing19 - Complete.accdb
828 KB
Quick reference
Forms in Design View - Part 2
In this lesson, we are going to continue working on the form we started in the last lesson.
When to use
Form Design is a fundamental skill if we want to create user-friendly forms.
Instructions
Designing a Form
- Re-open 'frmTicketDesign'.
- Right-click on the form tab and select Design View.
- From the Field List, double-click to add the 'ID' field.
- Reposition the field at the top of the form. Rearrange other fields where required.
- Drag the 'TicketNumber' field to the top so both the 'ID' field and the 'TicketNumber' field are on one row.
- Select all fields in the top row.
- From the Arrange tab, in the Sizing & Ordering group, click Align.
- Choose Align Top.
It's not necessary to have a label for every field. These can be deleted if required.
- Select the 'ID' and 'TicketNumber' label.
- Press the Delete key.
- Reposition 'ID' and 'TicketNumber'.
- Right-click on the form tab, and select Form View.
- Review the changes.
Tab Order
Notice where the cursor defaults to in Form View. It might be, that we need to change this and pull the focus to another field. If we press the TAB key to move through the form fields, it might also be that it doesn't TAB in the correct order. We can change this.
- Right-click on the form tab and select Design View.
- From the Form Design ribbon, in the Tools group, click Tab Order.
This will show the tab order of the fields. The field at the top of the list is the field that the cursor will default to when we load the form.
- Drag the 'ID' field to the top of the list.
- Click OK.
- Right-click on the form tab and select Form View.
- Press the TAB key to see the new tab order.
- Make any changes where necessary.
Headers and Footers
We can add headers and footers to our form.
- From the Form Design ribbon, in the Header / Footer group, click Title.
This will add a title for the form. The form title will be the name of the form by default.
- Select the title and go to the Property Sheet.
- Change the Text Align field to Center.
Let's add a form footer.
- From the Form Design ribbon, in the Header / Footer group, click Date and Time.
- Select the short date format (25-Jan-22).
- De-select Include Time.
- Click OK.
- Cut and Paste the Date into the footer.
- Align the date to the left-hand side of the form footer.
Renaming the Form
- From the Navigation Pane, select the 'frmTicketMaintenance'.
- Right-click and select Rename.
- Rename the form to 'frmTicketMaintenance_old'.
- Click on 'frmTicketDesign'.
- Right-click and select Rename.
- Rename the form to 'frmTicketMaintenance'.
Lesson notes are only available for subscribers.