|
Forms Fundamentals |
|
|
|
|
|
|
The AutoForm |
|
A very fast means of creating a form is through a
feature called AutoForm. To use it, in the Tables or Queries section of
the Database window, you can first click the object that holds the
information. Then, click the New Object: AutoForm button |
|
|
|
|
Characteristics of Forms |
|
Introduction |
|
Like all or most regular windows, a form starts on top with a title bar. Although a form is by default equipped with a title bar, for any reason you judge necessary, you can remove it. While you may allow the user to be able to minimize or maximize a form, you may want to present one or both of these actions for the user. As an application design environment, Microsoft Access provides most of the features you will need for a regular and even advanced database product. Most
of the Characteristics of a form can be configured using its Properties
window. After displaying the form in Design View, you can get its
Properties window by double-clicking the button at the intersection of
both rulers |
|
Form Centering |
|
If you either create a new form or modify the design of an existing form, when you save it, Microsoft Access saves the position of the form then would remember and restore that position the next time you reopen the form. Alternatively, you can ask Microsoft Access to position the form in the center of the screen the next time you open the form, even if it was on one corner of the screen when you saved it. To center the form by default whenever it comes, set its Auto Center Boolean property to Yes. |
|
The Title Bar |
|
The top section of a form is its title bar. It displays an icon on the left side. The system icon is fixed and you should not spend time trying to change it. The system icon holds a menu that allows the user to perform the regular operations of a Windows container, including minimizing, maximizing, restoring or closing the window. To display this menu, the user can click the form’s system icon:
The presence of the form’s system icon is partly controlled by the Control Box property of a form. In most cases, you should make this system icon and its menu available to the user. If for any reason you don't want to provide this functionality, set the Control Box property to No. The form would appear as follows:
If you decide to do this, make sure you provide the user with the ability to close the form and this type of title bar makes it impossible. Of course, a user may know that the form can be close by clicking the Close menu item under the File group of the main menu or by pressing Ctrl+F4. |
|
The middle section of the title bar is actually referred to as the title bar. It can be used to change the view of the form after right-clicking it. The title bar uses a color set in the Advanced Appearance of Control Panel as Active Title Bar. |
|
|
|
|
The System Buttons |
|
The right side of the form’s title bar displays three system buttons
|
|
|
|
|
The Form’s Borders |
|
Whether you allow the system icon and system buttons or not, the user needs to be able to know where a form starts and where it ends. This is seen by the borders of the form. In most cases, you will not be concerned with this aspect. Otherwise, you can control the borders of a form. The borders of a form are controlled using the Border Style property. If you set it to None, the form would appear without borders:
|
|
The Form's Width |
|
A form displays on the screen using its dimensions. These are the width and height. The form itself controls only the width. The height is controlled by its sections. To change the width of a form, on the Properties window, type the desired decimal value in the Width field of the Format property page. |
|
The Form's Sections |
|
The most obvious part of a form is an area called Detail. This section starts on a bar labeled
Detail and ends at the bottom unless a new section starts. The Detail section serves as the main host of other controls. It can also serve to display messages of various kinds. The Detail section can be enhanced by manipulating its properties. These properties are not necessarily related to the parent form but can be used conjointly with it.
|
|
Besides the Detail section, a form can be enhanced with one or two more sections: Header and Footer. By default, the Header and Footer sections are created on a form if you use the Form Wizard. To add the Header and Footer on a form that doesn't have them, you can use the menu bar where you would click View -> Form Header/Footer. Probably the fastest way to add these sections is by right-clicking anywhere on the form and clicking Form Header/Footer. If the form already has these sections but they don't contain anything, they would be removed. If the form already has these sections and they contain anything, you would receive a warning:
If you still want to delete the Header and Footer sections, you can click Yes; this would un-recoverably delete their content. Like the Detail section, the Header and Footer sections control their own height, which you can change the same way we did previously. This also applies for the Back Color property. The Special Effect property allows you to raise or sink a section. |
|
|
|
|
Record Selectors |
|
|
The Record Selector is a vertical bar on the left side of a form. It allows the user to select all of the fields’ contents of one or more records and copy them to the clipboard. Such a selection can then be pasted to another record, other records, or to a text or another type of file (for example you can paste the record in Notepad, Microsoft Word, Microsoft Excel, or any text file). |
|
|
|
|
The Form's Scroll Bars |
|
As much as you can, you should design your (non-Datasheet) form to display all of the fields of a record whenever the/a record comes up. Sometimes this will not be possible. If a form possesses too many fields for each record, Microsoft Access would equip the form with one or two scroll bars. A scroll bar allows the user to scroll from one side of the form to another. The vertical scroll bar is used to scroll up and down while the horizontal scroll allows scrolling left and right. |
|
Navigation Buttons |
|
A form is equipped with some buttons on its lower section. These buttons allow the user to navigate back and forth between records. These buttons are very useful during data entry and data analysis. If you are creating a form that would display the same content all the time, such as a form that does not actually display records, you can hide the form navigation buttons. |
|
|
|
|
Dividing Lines |
|
A form is equipped with special horizontal lines used to visually separate sections of a form. They do not perform any other special function. They can be useful on a continuous form. To equip a form with dividing lines, add a header and a footer sections. On the other hand, if you create a form that is directly equipped with a header and a footer sections, it would display the dividing lines. The presence or absence of the horizontal lines is controlled by the Boolean Dividing Lines property. Its default value is Yes, which means that the dividing horizontal lines would display on the form. To hide both lines, you can set its value to No. To hide an individual line, you can completely reduce its section. |
|
|
||
| Copyright © 2002-2004 FunctionX, Inc. | ||
|
|
||