![]() |
Introduction to the Records of a Table |
|
Data Entry Fundamentals |
|
Introduction |
|
After creating a table, you (actually the user) can start(s) populating it with information. Data entry consists of entering data into the database. To do this, you can use a table or some of the other objects we will study. Data is entered in a table by typing it into cells. Some fields can be configured to accept some types of data and reject others. Some other fields would allow anything. This depends on how the database fields were setup. |
|
A table's cell holds one particular unit of data. All cells on the same (vertical) column belong to the same category of information. As reviewed in the previous lesson, a horizontal range of cells is called a record; and all cells on this range belong to the same record:
After typing data into a cell, you can press Enter or Tab to move the
caret to the next cell. In many circumstances you will also be able to move to the next cell by pressing the right arrow key. Sometimes you can move to the next record even if the current record is not completed. In this case, you could press the down arrow key.
You can also enter data created from, or using, another application. For example, you can use a list from a text file or a spreadsheet. If you intend to import a text document, format it so that Microsoft Access can recognize where a field starts and where it ends. A simple file can be created using Notepad. If the file is from another type of application, you can first convert its data to text, save it as a text file, and then import it. If you are creating the (text) file in Notepad, the delimitation of a field is usually done by pressing Tab after creating the fields' content. Instead of the Tab key, you can also use a comma or a semi-colon to separate two fields. Since a field is usually made of more than one word (such as an address), enclose the content of each field in double quotes, as in "1600 Pennsylvania Avenue". A file that contains the data to be imported must also indicate where a record starts and where it ends. If you are creating the file in a text editor, the delimitation of a record is done by pressing Enter at the end of each record. When importing data, you use a wizard that will assist you in identifying the document, the fields’ delimiter, and the target table where you would like to store the new data. You can create a new table or use one already created in your database. Just as you can import data from a text file, you can also import the records from another Microsoft Access database, a spreadsheet from Microsoft Excel or else, or a table from another database environment such as Microsoft SQL Server, Corel Paradox, Oracle, etc.
|
"First Name","Last Name","Title","Home Phone" "Georgette","Hopps","General Manager","(301) 722-2820" "Robert","Laskin","Clerk","(202) 333-3366" "Suzie","Waller","Intern","(202) 546-8277" "Judith","Walsh","Clerk","(301) 599-1890" "Patrice", "Arlane", "Shift Supervisor","(301) 185-2208" |


You will usually not provide tables to the users for data entry. Instead, you will use objects called forms. A form appears in a view friendlier than that of a table. Here is an example of a form presented to a user:
For you as the database developer, a form only serves as a relay between the source of data, which can be a table, and the user who looks at it. Of course, in order to have a form in your application, you must first create it. When it comes to data of a database, there are two broad types of form: data-unrelated and data-related.
Although most of the forms you will use in a database are meant to display data from a table, you can create an independent form whose functionality and behavior don't depend on the data from a database. Such a form can be used to display other types of information to the user. The form can be referred to as unrelated. To create a blank form, on the ribbon, click Create and, in the forms section, click Blank Form. You would be presented with an empty rectangular object that awaits your touch. The other category of form involves those used to display data to the user. Such forms are primarily made for data entry. Before creating such a form, you must decide where data would come from. The source object can be a table or other means we will study in future lessons. If the data of a form will be based on a table, you can specify it, before or while creating the form. To easily create a form that would display data, in the Navigation Pane, select the table. In the ribbon, click Create. In the Forms section, click Form.
Like a table, you can create a temporary form to test something and get rid of the form after use (you do this by not saving the form). As done for a table, if you intend to preserve a form, you must save it. To save a form:
If the form was not saved previously, you would be prompted to give it a name. Like every object of a database, a form must have a name. Microsoft Access is very flexible when it comes to names of objects. For example, a form can be named D#%bb or 5&#GM* or anything like that. As you can imagine, such names are not realistic. For this reason, you should give easily recognizable names to your form so you would be able to predict what the form is used for. If a form is based on a table, it may be a good idea to give the same name as the table. If a form is independent, that is, if it doesn't display data from a table, you can give it a name that reflects its role in the database.
For a typical database, a form is used to view, enter, manipulate, and search data. Because users spend a great deal of their time looking at forms, you should create and make them as attractive and friendly as possible. Form design can take a long time in database development but Microsoft Access provides quick means to get around. The Form Wizard provides an easy and fast means of creating a form. To launch the Form Wizard, in the ribbon, click Create. In the Forms section, click More Forms, and click Form Wizard. This would start the wizard. The first page of the Form Wizard allows you to choose the originating table that will supply the necessary fields in the form. Once you have selected the object, its corresponding fields display in the Available Fields list box, you can select all fields or decide which ones you want to include in the form. The 2nd page of the wizard allows you to select the desired layout of the form. The 3rd page of the Form Wizard presents the forms designs you can choose from. The 4th page allows you to name the form.
Data entry of a database is mainly performed on forms as they provide a friendlier display of information than tables. Data entry on a form is performed using various types of Windows controls. On text boxes, the user enters data by typing it. On a combo box, depending on how the object was configured by the database developer, the user may have to only select an item from the list. In some other cases, the user may be allowed to enter new data. After entering or changing data on a control, to move from one field to the next, the surest way is to press Tab. On most occasions, the user can also press Enter. The Enter key may not move the cursor from a text box that allows multiple lines of text. If the user is simply reviewing data without performing data entry, the keyboard’s arrow keys can also be used to move among fields.
The primary function of the table is to provide a means of storing and arranging information of a database. Nevertheless, you can print data of a table, especially if for example you are in a hurry and don't have access to another object. You can print data on a table whether the table is opened or not. To print a closed table, locate it in the Navigation Pane and click it to select it, then click the Office Button, position the mouse on Print and select one of the three options. In the same way, if the table is opened in Datasheet View, click its tab to give it focus, then click the Office Button -> Print and select to print or to preview. The Print menu of the Office Button presents three options: |
|
|
Although not part of their primary role, forms provide a quick means of printing data, especially in the absence of desired reports. There are various issues related to printing forms, including printing all records or just some of them. You can print a form without opening it. Once you know the form you would like to print, locate its name in the Navigation Pane and use the same steps reviewed for a table. When a form is opened, you have the option of printing all of its records or the selected one. In the Form View, to print just one record, navigate to the record you would like to print, click the Form Selection bar to select the record and proceed to print. |
|
|

A report provides an object used to print a database's records. Although you can print tables or forms, reports are customized to be printer friendly. They can perform and display calculations. Once again, Microsoft Access provides wizards to quickly create reports. Microsoft Access can help you quickly create a report using one of the pre-designed layouts. This is done using the Report Wizard. The Report Wizard is available from the Reports section of the Create category of the ribbon.
The report is the favorite object used to print data. As done with the other objects, you can print a report whether it is opened or not. Before printing a report, you must first select or open it. If you want to print a report without opening it, in the Navigation Pane, locate the desired report and click it to select it. Then, proceed from the Office Button as we reviewed for the table and the form. In the same way, you can first open the report from the Navigation Pane and use the Print menu from the Office Button the same way we described for the other objects.
|
|
|
||
| Previous | Copyright © 2007, yevol.com | Next |
|
|
||