Share this Page URL

Chapter 8. Adding Features and Function ... > Using a Subform to View Related Data - Pg. 281

Adding Features and Function to Forms 281 You can change the design of a subform--for example, set form properties or move and resize controls on the subform--when you have the main form open in Design view. The subform control is different from the subform itself, and each object has different properties. To select the subform control, you can click anywhere on the control. To select the subform, you can double-click the form selector for the subform, which is the small rectangle in the form's upper left corner. Organizing Data with a Tab Control If you've used a recent version of Microsoft Office or one of the other applications that run on Microsoft Win- dows, you're probably familiar with dialog boxes that present information on a series of tabs--pages organized like file folders with a tab at the top of each page. The Options dialog box in Access is an example. A tab control can be used to organize a large amount of data on a single form. You can place groups of controls from a single record source onto different pages or use pages to display a series of subforms that each have a different record source. A tab control contains two pages by default. You can add pages to a tab control and also change the order of the pages in the control. You set properties for the tab control and the pages that a control contains independ- ently, although some formatting properties--such as font size and color--that you set for the tab control affect all the pages the control contains. To add a tab control to a form, click the Tab Control tool in the toolbox, and then click in the form. To add another page, right-click the tab control, and then click Insert Page. To select a tab control, click one of the boundaries of the control. To select a single page within the control, click the page's tab. When you're working with a tab control on a form, try selecting the control and a page with the Properties dialog box open so that you can confirm that the tab control or the page is selected. Each page includes a Caption property that you can use to create a label for the page. The HelloWorld8 database contains a form named TasksOnTabs, shown here, that organizes campaign tasks on a tab control with three pages. You can open the form in Design view and Form view to get a sense of how a tab control works.