In a database, it is very important to store valuable data, then to search and retrieve what is important. This comes from a good organization of your tables.
Finding
and Replacing Data:
You can search and find data on a table easily by using the find feature in Microsoft Access, combined with wildcards, which is helpful if your table has a lot of records.
You can search and find data on a table easily by using the find feature in Microsoft Access, combined with wildcards, which is helpful if your table has a lot of records.
- Start Microsoft Access and open the GHHS2 database.
- Open the tblStudentRegistrations table in Datasheet View .
- To find the student whose last name is DeGaram, on the main menu, click Edit -> Find... In the Find What combo box, type degaram. In the Look In combo box, choose tblStudentRegistrations. In the Match combo box, choose Whole Field. Then click the Find Next button.
- To find the student whose long name start with Andria..., in the Find What combo box, type andria* and click Find Next.
- To find a student whose name contains dou but you don't remember how to type it, in the Find What combo box, type *dou* and click the Find Next button.
- To find a student whose name sounds like the country whose Paris is the capital but might not be written the same way, in the Find What combo box, type fran?e and click the Find Next button.
- You can also combine wildcards to do your search/finding. In the Find What combo box, type *antan? and click the Find Next button, you will get Dr. Julia Sanatana.
- Close the Find and Replace property sheet.
- On the main menu, click Edit -> Replace...
- In the Find What, type vittas. In the Replace combo box, type Bitha. Then click the Find Next button to make sure that the right name will be replaced. Once you find Vittas as a student's last name, click Replace.
- Manually edit the student's e-mail address with bithaj .
- Click the Find tab. in the Find What combo box, type *vittas and click the Find Next button.
- Save the table.
Sorting
Records:
The
most basic way to organize is to sort it alphabetically.
- To organize the student's Last Names alphabetically, click any student's Last Name on the table. Then on the main menu, click Records -> Sort -> Sort Ascending.
- When you are finished viewing, click Records -> Remove Filter/Sort .
- Since we have male and female students, you can view a list of female students followed by male students or vice versa by sorting by gender. Click somewhere in the gender column, then on the toolbar, click the Sort Descending button.
- When you have finished viewing, click Records -> Remove Filter/Sort on the main menu.
- You can find out which students live in a single parent home by sorting also. Right-click on the column header of Single Parent? (Make sure you don't click on any field under the column header) and choose Sort Ascending.
- When you are finished viewing, click Records -> Remove Filter/Sort .
Using
Selection To Filter Records:
While
sorting rearranges data, filtering allows you to isolate data specifically. For
example, when you order the Single Parent? column alphabetically, you get a
list of girls first, then the boys. You can make a specific list that will
include only one of the categories.
- Click an M record under the Gender column. Then on the main toolbar, click the Filter By Selection button . That will give you a list of male students in the school.
- When you have finished viewing, click the Remove Filter button on the main toolbar.
- To get a list of the students who live outside of Maryland, right-click any MD under the State column and choose Filter Excluding Selection.
- When you have finished viewing, click the Remove Filter button on the main toolbar.
- To get a list of the students who live in Silver Spring, right-click in the City column, click in the Filter For edit box, type Silver Spring and press Enter.
- When you have finished viewing, click the Remove Filter button on the main toolbar.
Using
Wildcards To Filter Records:
The
Filter By Form feature allows you to filter records by assigning appropriate criteria.
The Filter By Form is like a dialog box in the form of a datasheet where you decide
how to set the criteria.
Hiding
And Unhiding A Column:
Sometimes,
some columns or categories of data are not important for the time being on a
table. For example, if you want to print data in table and find that you don't
need to print every category of data on that table. Thus, you can simply hide
the appropriate column.
- Right-click on the column header for the Single Parent? and click Hide Columns.
- To bring back a previously hidden column, on the main menu, click Format -> Unhide Columns...
- The Unhide dialog shows you, on a list, all the fields that are part of the table. Scroll down if necessary until you see that the Single Parent field is unchecked. Click to check it and close the dialog.
- This time, you can close the table, and the database.
No comments:
Post a Comment