Return to Table of Contents
Return to previous section
To run Access double click the Access icon which is located in the
The window consists of a Menu Bar with two items: File and Help. Selecting (clicking on) an item on the Menu Bar will cause a menu to display. The File menu contains options to create a new database or open an existing one.
The Figure below shows a typical Access window after an existing database has been opened.

Figure 1 The Access Window
Notice the following objects in the window display:
· The Menu Bar is a collection of items - selecting one will reveal a menu. The content of the Menu Bar, and the menus that display, vary according to which window is active (that most recently clicked).
· A Tool Bar is a collection of buttons which provide shortcuts to performing certain common tasks. When the mouse is moved over a toolbar button, an indication of what will happen when it is clicked on appears near the mouse pointer, and further explanation appears in the Status Bar.
· The Status Bar is used to display messages.
· The Database Window displays a list of objects: Tables, Queries, Forms, Reports, Macros or Modules depending on which one of the six Database Object Buttons on its left hand side has been most recently clicked.
· The Buttons towards the top of the Database Window enable a new object to be created, or an existing one to be used or modified.
Other windows can be displayed in the Access Window showing information in tables or forms or the output of queries for example.
Help

The Help menu gives access to a very comprehensive help system containing most, if not all, of the general information that appears in the paper documentation (Access User's Guide and Language Reference) and more.
· Contents gives access to the help pages through a hierarchical sequence of headings
· Search... displays a dialog box in which you can enter a term: Access will display a list of applicable topics from which a selection can subsequently be made
· Cue cards prompt you through the commoner tasks like the creation of a database, table, query, form, report or macro.
Creating a New Database
To create a new database select New Database... from the File menu displayed in the Access startup window.
Specify a Drive, Directory and File Name in the dialog box that displays and click the OK button. A new database will be created.

Figure 4 The New Database Dialogue Box
Opening an Existing Database
To open an existing database select Open Database... from the File menu in the Access startup window. A dialogue box similar to that illustrated above will display in which the Drive, Directory and File Name can be specified.
Alternatively a list of the four most recently opened databases appears towards the bottom of the File menu and one can be chosen by clicking on it.
Creating Tables within a Database![]()
To create a new table, click the Table Button in the Database Window. then click the New Button.
A window like that illustrated will appear.
Clicking the New Table button causes an empty grid to display in which structure of the new table can be specified as illustrated in the figure below. Each field is given a Name and a Data Type, and a Description may be recorded.
Clicking Table Wizards enables the creation of a table starting from one of a number of templates.
Field properties
Once a field has been given a name and data type, further properties can be specified in the Field Properties box which displays in the bottom left hand corner of the Table Window. That displayed in the figure above shows the properties for a field with data type Number - a shorter list will display for some of the other types. The role of each property is outlined in the Hint box when that property is clicked, and context dependent help is available. Briefly:
· Field Size determines the maximum amount of text for Text fields and the type of number ( Byte, Integer, Long Integer, Single or Double Precision Floating Point) for Number fields.
· Format determines how the data is formatted for display - a number of options are provided together with the ability to specify custom formats for some data types.
· Decimal Places applies to Number or Currency fields and determines the number of digits displayed after the decimal point: it does not affect the underlying data.
· Input Mask defines a pattern to which input data must conform.
· Caption determines the label used with the field on forms and reports, and what appears at the top of a column in queries (the default is the Field Name).
· Default Value determines a default value for this field when new records are created.
· Validation Rule can be used to specify a condition or conditions that data must satisfy.
· Validation Text displays on the Status Line when data breaks the Validation Rule.
· Required means that the field must be filled with valid non-null data before a record can be inserted (or updated).
· Indexed determines whether an index is built for the field - see also Indexes below.
Indexes
Indexes are used by Access when tables are queried to speed that process. They can result in dramatic performance gains on large tables. The indexes that are currently associated with a table can be viewed and modified by clicking the Index button on the toolbar.
The Primary Key of a table can be defined by selecting a field, or a set of fields and pressing the key button which appears on the tool bar - alternatively the primary key can be specified or modified through the Index dialogue box.
Although there is a cost in indexing - disk space is required and the index has to be updated whenever the data in that field changes - it would be generally advisable to index if the table contains a large number of records (thousands) and if the field will be used frequently in queries.
Table Properties
The Table Properties dialogue box enables a Description to be associated with a table and table wide (as opposed to field specific) validation rules to be specified.
Saving and Naming a Table
Having completed the table definition display the File menu and choose Save - you will be prompted for a table name.
Overtype the suggestion with a name of your choice.
Modifying the structure of a table
The structure of a table can be modified after it original definition.
· Adding extra fields and increasing the length of a character field, or the field size of a number field is straightforward.
· Changing the name of a field will require you to alter any references to it in Queries, Forms, Reports, Macros and Modules - so try and get the name right first time!
· Deleting a field will require you to delete all references to it.
· Decreasing the size of a field or the field size of a number field, or converting from one format to another may result in data loss: you will be warned and given the option of quitting, if you attempt it.
Viewing Data
To display the contents of a table in a Table Window, click the Table Button, highlight the table and click the Open button. A window, like that in the figure below, will appear displaying several records. This is referred to as Datasheet View.
Figure 8 Viewing data in a table
The Resize Handles on each corner of the window can be used to resize it.
The Scroll Bar on the left, which appears when there are too many records to fit into the window, can be used to control which block of records currently displays, as can the Navigation Controls at the bottom.
The grey area to the left of each record is known as the Record Selector. The Record Selector corresponding to the current record (that most recently clicked) contains a symbol: a triangle denotes an unchanged record, a pen indicates a record currently being changed, and a no-go sign (a crossed circle) may display to indicate that you have attempted to change a record which is currently locked (and being changed) by another user - see Inserting, Deleting and Modifying Data below. An asterisk appears in the record selector of an empty record at the bottom of the table.
The Column Selector can be used to resize or re-order the columns.
· To resize a column move the mouse to the right hand edge of the column that you wish to resize (the cursor displays as a two headed arrow), click and hold down the mouse and drag the column separator left or right, then release the mouse button.
· To re-order columns, select a column by clicking in the Column Selector, the column will highlight, click and hold down the mouse button and drag the small rectangle which appears, dropping it into the column to the left of which you wish the selected column to appear.
Sorting
The information displayed in a table window can be sorted in ascending or descending order based on a single field by clicking one of two Sort Buttons. If a more complicated sort is required a query can be used.
Finding a record in a table
![]()
The Binoculars button appears on the tool bar when a table is opened in datasheet view. It can be used to find a record which contains some specified string or pattern.
In locating a record the search term (characters or pattern) specified in the Find What box is matched against data in records in the table in which the cursor was positioned when the binoculars were clicked. The specified characters are matched against the contents of the current field if the (Search In) Current Field option is selected or against all fields if All Fields is selected. The match can be made against the Whole Field, the Start of the Field or Any Part of the Field depending on the option specified in the Where box. The direction of search can be specified as Up or Down and either the First or Next record found depending upon which button is clicked to initiate the search. Specifying Match Case requests a case sensitive search. Specifying Search Fields as Formatted compares the search term against the data as formatted, otherwise it is compared against the data as it is stored in the field(s).
Special Characters (Wild cards)
Patterns as well as words or phrases can be looked for. Special characters enable a pattern to be specified:
* Means any sequence of characters.
? Means any single character.
# Means any digit.
[abc] Enclosing several characters in square brackets means any one of those characters. A range (or ranges) can also be specified [a-z] and negation ! used: [!abc] is taken to mean any character except those specified.
Inserting, Deleting and Modifying Data
It is often preferable to alter data through forms (detailed later in this document), however, a new record can be entered by filling in the blank record (evidenced in Figure 8 by an asterisk appearing as its record status).
Existing records can be changed by appending information to fields, or by deleting or modifying the contents of fields. Data can be deleted by highlighting it and cutting (or by pressing the Del key) or by positioning the cursor and backspacing over it. Data can be copied and pasted in the normal way. Changes to the current field can be undone by pressing the Escape key - a second depression will undo any other changes that might have been made to the current record. Alternatively select Undo Current Field, Undo Current Record or (if you have moved away from it) Undo Saved Record from the Edit menu.
A record can be deleted by clicking selecting it and then pressing the Delete key, or by choosing Delete from the Edit menu (by default you will be prompted to confirm deletions).
Using Existing Data
One of a number of choices can be exercised if data already exists and you wish to use it with Access.
Access is capable of importing data from a number of other systems.
Access can also import data from ordinary text files provided:
· Each record occupies a single line.
· Fields are delimited by a special character, or alternatively, occupy fixed column positions.
Database tables in other systems, or in another Access database, can be attached to an Access database. In this case the data can be altered by Access but are maintained outside the Access database file.
Exporting to Other Systems
Data can be exported to all of those systems from which it can be imported.
Return to Table of Contents Continue with the next section.