STARTING MICROSOFT ACCESS
To start Microsoft Access, follow the steps below:
- Click start button, the program menu
- Move to the MS Office menu
- Click on MS Access
Once Access is running, an initial screen will be displayed. From the initial screen, you can either (i) create a new blank database (ii) open an existing database
Choose blank database and specify a new filename for the database.
Click on the OK button to create the new database. Creating a table using the design view tables is the foundation of every database.
To create a table, follow the procedure below.
- Click create tab and click on the table icon
- Pull down the view menu and choose design view. The table design view will appear.
- Fill in the field Name, Data Type and description for each column filed in the table.
- Highlight the require filed and click on the primary key button on the button bar. A small key appears next to the field name on the left side.
- Pull down the office (or file) menu and choose Save As menu item. Change the Table name to a name of your choice and click OK button.
Viewing and adding data to a table
In table using a simple spreadsheet – like display. To bring up the customer table, highlight the name of the table and then double-click on the name of the table.
To add data to the table, simply type in values for each of the fields. Press the Tab key to move between fields within a record. Use the up and down arrow keys to move between records.
To save the new data, pull down the office menu and choose save. To navigate to other records in the table, use the navigation bar at the bottom of the screen.
Creating relationship between table
Note that one of the main characteristics of relational database is the fact that all tables are related to one another.
In the bank database under consideration, the Customer table is related to the account table by virtue of the Customer ID appearing in both tables. MS. Access has a way of showing this relationship by using the relationship screen.
- Close the account table and Customer table by right clicking on one of them and select close ALL
- Click on the database tools tab and then click on relationships button. The blank relationship screen will appear. The Show Table dialog box will also appear.
- Highlight both the Customer table and Account table and then click on the Add button
- Click on the close button to close the dialog box. The relationship screen will reappear.
- Click on the Customer ID field in the Customer table and drag it on top of the Customer ID field in the accounts table. Upon releasing the mouse button, the edit relationship dialing box will appear.
- Click on the create the relationship. The relationship screen will reappear with the new relationship in place with the symbol “1” (indicating “one”) and the infinity symbol (indicating “many”) on Customer ID of Customer and Accounts tables respectively.
Creating and running query
Queries are fundamental means of accessing and displaying data from tables. Queries can access a simple table or multiple table.
- Which students are in JSS 2?
- Which students are children of staff members?
- Which parents does not live in Lagos?
- Which student was born in 2003?
- Which students are male?
Single table query
- Click on create tab and select query wizard button. 3 selections will appear – Table/query, Available filed and Selected fields.
- File down the query/table list and choose parents table notice that, available fields change to only those field in the parent table.
- From the list of available field on the left, move the first name, last name, Address, city and state over to the selected fields on the right.
- Click on the next button to move to the next and final step in the simple query wizard.
- Set parent Address as the name of the query.
- Choose open the query to view the information and click on finish button when the query executes only the selected fields will appear in all the rows.
- Close the query by clicking (x) button on the right area of the query result.
- The access main screen showing the query will appear.
Note that new query; “parent Address” appear under the parent table
- Create and run a query
- Create a single query
- Setup parent address as the name of the query
- State the steps to be followed in creating a table
- How do you save a table