Documentos de Académico
Documentos de Profesional
Documentos de Cultura
what it is that the wizard actually does and 13.3.1.1 Adding bound text boxes
provide you with the basic knowledge needed to (lesson13-2.avi)
customize and refine the wizards output.
(lesson13-1.avi) Add a bound text box for the CustID
field by dragging CustID from the field list
Create a new blank form based on the to the form background, as shown in
Customers table, as shown in Figure 13.2. Figure 13.4.
The basic elements of the form design screen
are shown in Figure 13.3.
FIGURE 13.2: Create a new form to display data from the Customers table.
Select the CustID text box using the mouse Drag the remaining fields on to the form (do
and reposition it in the upper left region of not worry about whether the fields are
the form. lined up perfectly).
Remember that you can always use the Save the form as frmCustomers.
? undo feature to reverse mistakes.
Select Edit Undo from the menu or Select View Form to see the resulting
simply press Ctrl-Z (this works the same form. Alternatively, press the form view
in virtually all WINDOWS applications). icon ( ).
Form fundamentals Exercises
4 o f 10
FIGURE 13.4: Create a bound text box for the CustID field.
Select View Form Design or press the properties to control the users ability to
design view icon ( ) to return to design change the information in a field.
mode. (lesson13-3.avi)
13.3.1.2 Using a fields properties to protect its Select the CustName text box and right-click
contents to bring up its property sheet, as shown in
Every object on an ACCESS form (e.g., text box, Figure 13.5.
label, detail section, etc.) has a set of
properties that can be modified. In this section, Scroll down the property sheet to the
you are going to use the Locked and Enabled Locked property and set it to Yes, as shown
in Figure 13.6.
Form fundamentals Exercises
5 o f 10
FIGURE 13.5: Bring up the property sheet for the CustName text box.
Switch to the form view and attempt to property to No and set the Enabled
change the contents of the CustName field. property to No.
The contents of the field are indeed locked.
A stronger form of protection than locking a
Attempt to change the contents of the
CustName field in form view, as shown in
field is disabling it.
Figure 13.7.
Return to design mode and make the
following changes: reset the Locked
Form fundamentals Exercises
6 o f 10
FIGURE 13.9: Set the Control Source FIGURE 13.10: Create a new form using the
property of an unbound text box. form wizard.
1 Select the
form wizard.