Microsoft Office Tutorials and References
In Depth Information
The Selection type entry, which is the line below the property sheet title bar, displays
the control type (Label in this case) for the selected control. Below the Selection type
entry in the property sheet is the Control list box, which you can use to select another
control in the form and then change its properties in the property sheet. Or you can
simply click the control to change to its properties in the property sheet. The first
property in the property sheet, the Name property , is the property that specifies the
name of a control, section, or object (CustomerID_Label in this case). The Name prop-
erty value is the same as the value displayed in the Control list box. For bound controls,
the Name property value matches the field name. For unbound controls, Access sets
the Name property to the control type (for example, Label) followed by a number (for
example, Label2). For unbound controls, you can set the Name property to another,
more meaningful value at any time.
4. Close the property sheet, and then save your design changes.
Tip
You should always check
that the Selection type
entry is the correct control
type and the Control list
box displays the correct
name for the control
whose properties you are
changing.
Now that you’ve added the combo box to the form, you can view the form in Layout
view, and then position the combo box and its attached label and resize the combo box.
You’ll need to view the form in Form view to determine any fine-tuning necessary for the
width of the combo box.
To view and modify the combo box in Layout view:
1. Switch to Layout view to view the form, and then click the CustomerID combo
box, hold down the Shift key, click the Customer ID label, and then release the
Shift key to select both controls.
First, you’ll align the CustomerID combo box and its label with the ContractType
and ContractNum bound controls. You’ll move the selected controls to the right of
the Contract Type label, align the Customer ID and Contract Type labels on their
left edges, align the CustomerID and ContractType controls on their left edges,
and then align the bottom edges of the combo box and its label with the bottom
edges of the ContractNum bound control.
2. Drag the selected controls to the right until the Customer ID label is approximately
one inch to the right of the Contract Type label, making sure the two controls
remain above the ContractNum bound control.
3. Select the Customer ID label and the Contract Type label, click the Arrange tab
on the Ribbon, and then in the Control Alignment group on the Arrange tab, click
the Left button. The selected controls are aligned on their left edges.
4. Repeat Step 3 to align the CustomerID combo box and the ContractType text
boxes on their left edges.
5. Select the Contract Num label, ContractNum text box, Customer ID label, and
CustomerID combo box, and then in the Control Alignment group on the Arrange
tab, click the Bottom button. The four selected controls are aligned on their bot-
tom edges.
6. Switch to Form view, and then click the CustomerID arrow to open the control’s
list box. See Figure 6-29.
Search JabSto ::




Custom Search