creating a multi-page form using tab controls
DESCRIPTION
Creating a multi-page form using Tab Controls. In today’s class, we will be using the Tab Control method to create the Form / SubForm combination. Last week we took a look under the hood so to speak, at the principal behind the process. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/1.jpg)
Creating a multi-page form using Tab Controls
![Page 2: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/2.jpg)
In today’s class, we willbe using the Tab Controlmethod to create theForm / SubForm combination.
![Page 3: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/3.jpg)
Last week we took a look under the hoodso to speak, at the principalbehind the process.
![Page 4: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/4.jpg)
When you create a form containing data from two tables that have a one-to-many relationship, you actually create a main form for data from the primary table and a subform for data from the related table.
Main Form
SubForm
![Page 5: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/5.jpg)
You can use tab controls to create a form / sub-form combination, or you can simply add more fields to a form from the same source making a multi-page form.
Main Form
SubForm
![Page 6: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/6.jpg)
You can create a multi-page form in two ways: by inserting a page break control in the form or byusing a tab control.
If you insert a pagebreak control ina form, the usercan move betweenpages using thePage Up andPage Down keys on the keyboard.
![Page 7: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/7.jpg)
If you use a tab control, the control appears with tabs at the top, with one tab for each page. The user can switch between pages by clicking the tabs.
Page 2
Page 1
![Page 8: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/8.jpg)
To create a tab control on a form, you use the tab control tool from the tool box.
![Page 9: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/9.jpg)
Tab Controls, like any other object have properties. They can be viewed by right clicking on the tab control and selecting Properties from the short cut menu.
![Page 10: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/10.jpg)
It’s important to note also, that not only does the tab control itself have properties, but each tab has it’s own set of properties as well.
![Page 11: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/11.jpg)
The caption property for each tab is where you place the text that will appear on the tab.
![Page 12: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/12.jpg)
To use the control wizard to add a tab control to a form, first, open the form in design view and make sure that your Toolbox is visible.
![Page 13: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/13.jpg)
Next, make sure that your wizard control button on the Toolbox is active. (inserted)
![Page 14: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/14.jpg)
Then, click the tab control tool on the toolbox to activate it, and release the mouse button. The tool becomes inserted and the cursor will change.
![Page 15: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/15.jpg)
Next, position the pointer in the form at the location for the upper left corner of the tab control and then click the left mouse button.
![Page 16: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/16.jpg)
The exercise beginning on page AC 5.41 in your book shows steps of the creation of a tab control using the wizard.
![Page 17: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/17.jpg)
Once the tab control is placed on the form, you are now ready to place objects on the control, such as labels and fields, and you can then align each object accordingly.
![Page 18: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/18.jpg)
To align labels on a form, first select the labels that you want to align.
![Page 19: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/19.jpg)
To select multiple labels, click the first label, press and hold down the shift key and click the other labels while holding down the shift key. After all the labels have been selected, click format on the menu bar, point to align, and select the alignment that you want. right, left, etc.
![Page 20: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/20.jpg)
Using a filter to find records on a form
![Page 21: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/21.jpg)
Recall that a filter is a set of criteria that describes the records you want to see, in a datasheet or a form, and their sequence. A filter is like a query, but it applies only to the current table, datasheet, query datasheet, form or form datasheet. If you want to use a filter at another time, youcan save the filteras a query.
![Page 22: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/22.jpg)
Access provides four filter tools that allow you to specify and apply filters. Filter By Selection, Filter by Form, Filter For Input, And Advanced Filter/sort.
![Page 23: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/23.jpg)
With Filter By Selection, Filter By Form, and Filter For Input, you specify the record selection criteria directly in the form.
![Page 24: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/24.jpg)
With Filter By Selection, finds records that match a particular field value.
![Page 25: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/25.jpg)
Filter By Input and Filter By Form find records that match multiple selection criteria, using the same Access logical and comparison operators that you use in queries.
![Page 26: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/26.jpg)
After applying a filter by selection or by form or for input,
you can rearrange the records using the Sort Ascending or Sort Descending toolbar buttons, if necessary.
![Page 27: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/27.jpg)
Advanced Filter/Sort allows you to specify multiple selection criteria and to specify a sort order for the selected records in the Advanced Filter/sort window, in the same way you specify record selection criteria and sort orders for a query in Design view.
![Page 28: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/28.jpg)
The above is the Advanced / Filter Sort window. Notice that it looks just like a query design window. The difference here is that it pertains only to one table, where as a query can use multiple tables.
![Page 29: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/29.jpg)
By saving a Filter as a Query, you can reuse the filter in the future by opening the saved query. To Save a Filter as a Query, First, Create a filter using Filter By Selection, Filter By Form, Filter for Input, or Advanced Filter/Sort.
![Page 30: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/30.jpg)
Next, Click the Save As Query button the theForm/Sort toolbar to open the Save As Query Dialog box.
Finally, Type the name for the query, and then press the Enter key (or click the OK Button).
![Page 31: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/31.jpg)
To apply a filter that was saved as a query, First, Open the form to which you want to apply the filter. Then click the Filter By Form button on the Form View toolbar.
![Page 32: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/32.jpg)
Next Click the Load from Query button on the Filter/Sort toolbar, select the query you want to apply. Access loads the saved query into the Filter grid.
![Page 33: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/33.jpg)
Finally, click the Apply Filter button on the Filter/Sort toolbar.
![Page 34: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/34.jpg)
Page AC 5.54
Quick Check ReviewQuick Check Review
![Page 35: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/35.jpg)
Quick Check ReviewQuick Check Review
Let’s take a fewmoments to break upinto discussion groups.Each group will discussthe quick check questions on pageAC 5.54 in your books. We will then review the answers at the end of the discussion.
![Page 36: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/36.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
1) Describe how you would use a Control Wizard to add a tab control to a form.
![Page 37: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/37.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
Additional QuestionAdditional Question
1) Which control on the toolbox should be active in order for thiswizard to be used?
![Page 38: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/38.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
2) How do you right-align a group of labels?
![Page 39: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/39.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
3) What is the purpose of Filter By Form?
![Page 40: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/40.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
4) How do you reuse a filter in the future?
![Page 41: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/41.jpg)
Quick Check Review Quick Check Review Session 5.3Session 5.3
5) What is the difference between opening a query and applying a query to a form?
![Page 42: Creating a multi-page form using Tab Controls](https://reader035.vdocuments.site/reader035/viewer/2022062301/5681512f550346895dbf48b0/html5/thumbnails/42.jpg)
Your task today is to complete the exercises in Tutorial #5 Page A5.40 through Page A5.54
The disk isLevel 2Disk 1