What happens when you create a field by entering data in a Datasheet View?
Think about the type of data that will be stored in the field. That guide you as to which data type you should choose here. Show
For example, a field for storing a person's first name will probably use a Short Text data type (it can contain up to 255 characters), whereas a field for storing their date of birth will probably use Date & Time. You can always change the data type later (although, preferably before you enter too much data). ID Field Access automatically creates an ID field with the table. You can rename this if required (see below). Name the FieldOnce you've selected a data type, Access highlights the column header so that you can name the field. Enter a name for the field. Repeat steps 2 and 3 for as many fields that you need to add. Renaming FieldsWhen you create a new table, Access automatically adds a new field called ID with a data type of AutoNumber. Tables are probably the most important part of a database. Tables are made up of sets of fields (columns) that are defined as specific data types. Tables store data in these fields in the form of individual records (rows) in the table. Access makes it very easy to create new tables and edit existing ones, and a number of methods exist for doing so in Access 2010, such as Datasheet or Design View modes. This lesson discusses the basics of building tables for a database application using Datasheet View mode in Access 2010. LESSON SETUPIn this lesson, you learn how to create a table using the Datasheet View designer in Access 2010. Datasheet View allows you to quickly add fields, set the data type of the field, and enter data into the table, all in a tabular layout that is similar to an Excel worksheet. CREATING TABLES IN ACCESS 2010The Create Ribbon offers three basic methods for creating tables. The Table button creates and opens a new table in Datasheet View mode. The Table Design button opens the table in Design View mode and is the traditional method of creating tables. Design View also provides easy access to all the properties of the fields in the table. This allows you greater control when designing the table. The SharePoint Lists button allows the user to create linked tables to a new SharePoint list. This lesson discusses creating Access table objects in an ACCDB database file using the Table Design button to create the table in Datasheet ... After opening a table in datasheet view, you can quickly move to the “New Record” row. To do this, click the “New Record” button at the right end of the “Record Navigation” button group in the lower-left corner of the datasheet view. It is the button with the [►*] face. Your cursor will then automatically enter into that row. You can then enter the new record’s data to add records to a table in datasheet view in Access.The (1) in the above image shows an asterisk which indicates a new record. The (New) is Access telling us that the AutoNumber field ItemID will be given a new value as soon as a record is added. You don’t need to enter data into the ItemID field as it will auto-generate. In fact, you cannot enter data here at all. So using the tab button, tab over to the first field you can enter data into (in this case description) and write in an appropriate item (in our case laptop). Tab over 1 one more field and enter any relevant data there. Keep doing this until you have entered data in all the necessary fields. You will have something that looks like the above. Whenever we are entering data, the record we are currently editing gets a pencil icon. The (New) word moves to the next line and Access auto-generates the ID fields – hence AutoNumber. In the above image, the red circled items (2) are the record navigation buttons. Here we can see that we are currently entering data on record 2 of 2. When you open a table or view the results of a query, Access displays the table or query result in Datasheet view. Table data or query results that are shown in Datasheet view are commonly referred to as a datasheet. You can customize the appearance of a datasheet to display specific data for use as a simple report. What do you want to do?Learn about datasheetsA datasheet is the visual representation of the data contained in a table, or of the results returned by a query. It displays the fields for each record from a table, form, or query result in a tabular (row and column) format, as shown here. By default, tables and queries open in Datasheet view. In the Navigation Pane, right-click a table or query, and then click Open on the shortcut menu to open the table or query as a datasheet. When you apply specific formats to rows and columns or add a Total row, a datasheet can also serve as a simple report. Organize data by modifying and moving columns or rowsYou can organize data to make the datasheet easier to view or to display only the required data at a particular time. This section shows you several ways in which you can accomplish this. Resize columns or rowsSometimes, not all of the columns in a datasheet will fit on your screen or printout, or individual columns may occupy more space than they need for their contents. In addition, you may want to change the height of the rows so that text that does not fit into a column can continue on a new line. After you open a table, query, or form in Datasheet view, you can either manually resize the individual columns or automatically resize a column to fit its contents. Manually resize a column
Automatically resize a column
Resize multiple columns
Resize rows
You cannot resize each row individually — when you resize a row, all of the rows are resized. Resize rows to the default height
Note: You cannot undo changes to the width of a column or the height of rows by clicking the Undo button on the Quick Access Toolbar. To undo changes, close the datasheet, and then click No when you are prompted to save your changes to the layout of the datasheet. Clicking No will also undo any other layout changes that you made. Move a columnYou can quickly change the order of the columns in a datasheet by dragging the columns to different locations within the datasheet. For example, you might do this to ensure that a specific column always remains in view.
Rename a columnThere might be occasions when you want to rename a column so that it better describes the data it contains. For example, if a column containing e-mail addresses is named EMAdd, you may want to make the column heading easier to understand by changing it to E-Mail Address. To do this, right-click the heading for the column, click Rename Column on the shortcut menu, and then type the new name. For example, type E-Mail Address. Show or hide columnsIf you want to display or print only certain columns for your datasheet, you can hide the columns that you don't want displayed. For example, if you are working with a database of contact information, you may want to see only the full name and e-mail address for each contact. You can create this view by hiding all other columns. Hide columns
Show columns
Change the gridlines style and background colorWhen using a datasheet, you can enhance the appearance of the data by changing the formats, such as the gridlines style or the background color, or by creating different colors for alternating rows. Set the gridlines style
Set the background color
Change the background color of alternating rowsYou can set the background color of alternating rows in a datasheet independent of the default background color. By setting an alternating background color, you can make it easier to distinguish between adjacent rows.
Change the text formatAfter you open a table, query, or form in Datasheet view, you can change the appearance of the text, including the formatting. Note that your changes apply to the entire datasheet. If you want your changes to appear automatically the next time that you open the datasheet, remember to click Yes when you close the datasheet and are prompted to save the changes to the layout. You use the additional commands in the Text Formatting group on the Home tab to make changes to font characteristics in the datasheet.
Summarize data by adding a Total rowBy adding a Total row to a datasheet, you can quickly see the calculated total for a column. In addition to summing a column of data, you can use the Total row to perform other calculations, such as finding averages, counting the number of items in a column, and finding the minimum or maximum value in a column of data. To display the Total row, do the following:
For more information about using the Total row feature, see the article Display column totals in a datasheet using a Totals row. Apply sorting and filteringThere are some additional quick changes that can make your datasheet easier to view or print. For example, in the following illustration, the company names are sorted alphabetically.
Save your layout changesAfter you change the layout and appearance of a datasheet, you need to save the changes if you want to keep the changes the next time that you open the datasheet. When you close a datasheet after you make changes to its layout, you are prompted to save those changes. If you click Yes, the changes are saved and applied the next time that you open the datasheet. If you click No, the changes are discarded, and the datasheet opens with the default layout settings (or the last saved settings) the next time that you open it. When creating a new field in the Datasheet view of a table Access will apply a data type based on what you type?Access will apply a data type based on what you type. For example, if you type a date, Access will automatically apply the Date/Time data type to the field. Press Tab or Enter to enter data for the next field. Repeat steps 3 and 4 to enter all the data for the first record.
Can you enter data in Datasheet view?Adding, editing, and deleting data
New records in Datasheet views always appear at the bottom. To edit a record: Click into the row you want to edit and tab to the specific column you want to change. Type in your new data and then tab or click to a different record to save your record changes.
What are the steps for entering data by using the Datasheet view?To add records to a table in datasheet view in Access, open the desired table in datasheet view. Click the “New Record” button at the right end of the record navigation button group. This button group appears in the lower-left corner of the datasheet view. It is the button with the arrow and asterisk [►*] on its face.
Can we add a new field in an existing table from the Datasheet view?Step 1: Open the database file in which you wish to insert new data. Step 2: Go to View > and Select Datasheet View option located in the ribbon and insert the data or information that you wish to add in the table. Step 3: Repeat Step 1 and 2, to add some data in another table.
|