Tables and Queries Aesthetics |
|
Practical Learning: Hiding and Un-hiding Columns |
|||||
|
Hidden Columns on Queries |
To display or hide a column in a query, you can open the query in Design View and use the Show check box of the column: If you leave the Show check box of a column, which is the default value, when you run the query, the column would display: If you clear the check box of a column, the column would still be part of the query but it would not display when the query is run. In the SQL, if you do not want to display a column, you can simply omit or delete it from the statement. For example, the following statement can be used to display the LastName column from the Persons table and the Gender column from the Genders table while both tables are joined by the GenderID primary key of the Persons table and the GenderID foreign key of the Persons table representing the Genders table: SELECT Persons.LastName, Gender.Gender FROM Gender LEFT JOIN Persons ON Gender.GenderId = Persons.GenderID; |
Practical Learning: Hiding Column on a Query
|
Hidden Fields on Forms and Reports |
To hide a field from a form or a report, as done for a query, you can simply avoid adding it to your form or report when designing the form or report. There will be many other cases where you must add the field to the form or report but would not need to show it to the user. In such a case, after adding the field to the form or report, access its Properties window and change the value of its Visible Boolean property: If you set the value to Yes, the field would display at run time. If you want to hide the field, set its Visible property to No. |
Columns Freezing on Tables and Queries |
During table or query data entry or analysis, you have to scroll left and right to navigate from various fields if the table is very large or too wide for your screen resolution. Sometimes, this would be annoying if you do not need access to all fields of all columns. Microsoft access allows you to work in series of records so that you can fix some columns on the left side of the screen and scroll only to its right columns. To freeze a column, you should first click it to select it. Then on the main menu, click Format -> Freeze columns. The column would be moved to the left side of the table and would become the first column. The columns that were on its left would be moved to the right. The frozen column would become static with a thick right border. When scrolling to the right, only the other columns would move. To freeze a group of columns, first select them using the Shift key + click combination. Then freeze them in the same way. The selected columns would be moved to the left of the table and become static. If you scroll to the right, only the other columns would move. The technique applied to the tables in the following Practical Learning section can also be applied to a wide query. |
Practical Learning: Freezing Columns
|
Table and Query Datasheet Formatting |
Cells Font |
Although you will usually not give access of your database tables to the users, there are techniques you can use to improve the table's appearance just in case people would use it. This is also helpful if you create a form that looks like a table (Datasheet Form). A table appears as a series of cells. Their font is a regular black Arial in size 10. Microsoft Access allows you to modify the font of the text that displays in cells. To do this, you can use the Font dialog box available either from the Format item of the main menu or by selecting Font… after right-clicking the title bar of a table. |
Practical Learning: Changing the Cells Font
|
Formatting the Table Grids |
A table in Microsoft Access appears as a classic spreadsheet with a white background and gray grid lines. If this display is not appealing, you have two options. You can apply a gray background with white or dark gray grid lines. You can also change the background to one of the preset colors and change the grid lines to another color. |
Practical Learning: Changing Columns Width and Rows Height
|
Exercises |
Watts A Loan
|
|
||
Previous | Copyright © 2002-2019, FunctionX | Next |
|