Unit6 Access ms access short notes
Unit6 Access ms access short notes
UNIT - VI MS Access:
Orientation to Microsoft Access - Create a Simple Access Database - Working with Table Data -
Modify Table Data - Sort and Filter Records - Querying a Database - Create Basic Queries - Sort and
Filter Data in a Query - Perform Calculations in a Query - Create Basic Access Forms - Work with
Data on Access Forms - Create a Report - Add Controls to a Report - Format Reports.
1. What is Microsoft Access? What are the advantages and disadvantages of access?
Microsoft Access is a Database Management System offered by Microsoft. It uses the Microsoft Jet
Database Engine and comes as a part of the Microsoft Office suite of application.
Microsoft Access offers the functionality of a database and the programming capabilities to create easy to
navigate screens (forms). It helps you analyze large amounts of information, and manage data efficiently.
Advantages of MS Access
Disadvantages of MS Access
• Microsoft Access database is useful for small-to-medium business sectors. However, it is not useful
for large-sized organizations
• Lacks robustness compared to dbms systems like MS SQL Server or Oracle
• All the information from your database is saved into one file. This can slow down reports,
queries, and forms.
Ms.Amandeep Kaur
2
Table
• A Table is an object which stores data in Row & Column format to store data.
• A Table is usually related to other tables in the database file.
• Each column must have Unique name
• We can also define Primary Key in a table.
Query
• Queries answer a question by selecting and sorting and filtering data based on search criteria.
• Queries show a selection of data based on criteria (limitations) you provide.
• Queries can pull from one or more related Tables and other Queries.
• Types of Query can be SELECT, INSERT, UPDATE, DELETE
Form
• A form is a database object that you can use to create a user inferface for a database.
• The user can create an expression which uses data from one or more fields
Report
• A report is an object in desktop databases primarily used for formatting, calculating, printing, and
summarizing selected data.
• You can even customize the report's look and feel.
some of the most common data types used in a Microsoft Access database.
Short Text : Text or combinations of text and numbers, including numbers that do not require calculating (e.g.
phone numbers).
Date/Time : Date and time values for the years 100 through 9999.
Currency : Currency values and numeric data used in mathematical calculations involving data with one to
four decimal places.
Ms.Amandeep Kaur
3
Yes/No : Yes and No values and fields that contain only one of two values (Yes/No, True/False, or On/Off).
OLE objects : OLE objects can store pictures, audio, video, or other BLOBs (Binary Large Objects)
1. Click on the 'Windows' icon. You will find the list of installed programs.
2. Check and click on Access Icon.
3. MS Access Application window will appear
4. Press 'Esc'
Database store the data in a well-organized manner for easy access and retrieval.
Ms.Amandeep Kaur
4
Step 3) File name box will appear with the default file name.
5) Click on 'Create.'
Step 1) First Click Create tab. Then from Tables group, click Table.
Step 2) Table Dialog box appears. For each Field enter Filed Name, Data Type and Description.
Steps 3) To Add Course_ID as Primary Key, select it and Click on 'Primary Key.' Course_Id will be Preceded
by KEY ICON as shown below:
Ms.Amandeep Kaur
5
Once you have created a table, you can modify it later by adding, deleting, and modifying its
fields.
Display a table in Design View
1. Open the table in Datasheet View. Click the Home tab on the Ribbon and click the View button in the Views
group.
2 The table appears in Design View. Here you can add, delete, or modify the table’s structure and fields.
Add/modify a field in Design View
1. In Design View, enter or edit a field name in the Field Name column, click in the Data Type column
for that row
2. click the Data Type list arrow and select a data type for the field. Repeat as desired.
Change a field’s data type
A field’s data type determines the type of information that can be stored in a field. For example, you cannot
enter text into a number field.
1. Display the table in Design View.
2. Click the field’s Data Type box, click the list arrow, and select a data type from the list.
8. How to sort and filter records in Ms – access?
Records can be sorted either alphabetically, numerically, or chronologically (by date).
Additionally, you can sort information in ascending (A to Z) or descending (Z to A) order.
Sort records
1. Open the table you want to sort and click anywhere in the column (field) you want to use to sort by.
2. Click the Home tab on the Ribbon and click either the Ascending or Descending button in the Sort &
Filter group.
Clear a sort
1. Click the Home tab on the Ribbon and click the Clear All Sorts button in the Sort & Filter group.
2. The sorted data returns to its original order.
Filtering records
Sometimes you may want to see only certain records in your table. By filtering a table, you display only the
records that meet your criteria and hide the records that do not.
There are several filter methods:
❖ Common Filters
❖ Filter by Selection
❖ Filter by Form
Ms.Amandeep Kaur
6
❖ Advanced Filter/Sort
Apply a common filter
1. Click anywhere in the column you want to filter by, click the Home tab on the Ribbon and click the
Filter button in the Sort & Filter group.
2. A contextual menu appears with two ways to filter:
• Use the check box list. This list contains all the values in that column. Uncheck a box and click
OK to filter out a particular value.
• Point to [Data type] Filters, then point to an option—such as Equals or Does Not Equal— on the
submenu that appears. Enter a filter criterion in the Custom Filter dialog box.
3. Select a filter option.The data is filtered.
9. How to create a query in Ms- access?
Create a query in Design View
1. Click the Create tab on the Ribbon and click the Query Design button in the Other group.
2. Select the table you want to add to the query and click Add.
3. Repeat Step 2 as necessary for additional tables or queries, and click Close.
• The Query window appears in Design View. Noticethat the window is split.
• The top half contains a box that displays all the fields in the table you added to the query.
• The bottom half of the screen contains a design grid, which is where you will add the fields you
want to appear in your query.
4. In the field list, double-click each field you want to include in the query.
5. In the design grid, enter any desired search criteria
6. Click the Save button on the Quick Access Toolbar, enter a name for the query in the Save As dialog
box and click OK for the field in the Criteria box.
7. Click the Design tab under Query Tools on the Ribbon and click the Run button in the Results group.
10. How to sort a query in Ms- Access?
Tables normally display records in the order they were entered. you can create a simple query that
sorts the table information and presents it in an ordered, easy-to-read display. you can create a simple query
that sorts the table information and presents it in an ordered, easy-to-read display. You can sort records
alphabetically, numerically, or chronologically (by date) in ascending (A to Z) or descending (Z to A) order.
1. Display the query in Design view.
2. Add the field you want to use to sort the query to the design grid, along with any other fields you want to
appear in the query results.
3. Click the Sort list arrow for the first field you want to use to sort the query, then select a sort order.
Ms.Amandeep Kaur
7
Select Query:
The most basic and common type of query, select queries find and display the data you want
from one or more tables or queries.
Parameter Query Prompts the user for specific information every time the query is run.
Crosstab Query Summarizes data in a table format that makes it easy to read and compare
information.
Make Table Query Creates a new table from all or part of the data in one or more tables. Useful for backing
up and
exporting information.
Append Query Appends or adds selected records from one table to another table. Useful for importing
information into a table.
Delete Query Deletes selected records from one or more tables.
Update Query Updates selected information in a table..
Union Query Combines fields from two or more tables or queries into one field and is written directly in
SQL.
Pass-Through Query Allows you to work directly with tables on an ODBC database server, instead of having
the Access database on your local computer process the data.
Data Definition Query Does not retrieve data (unlike other types of queries). Can be used instead of the
Access graphical interface to create tables, constraints, indexes, and relationships.
Ms.Amandeep Kaur
8
13. What is a form? Write the steps how can create a form using form wizard?
Form : A form is an object of access. It is used to read the data from the table or tables, in the same
way it is also used to write the data into the table or tables. It provides tools to make the form with GUI
feature.
To create a form using wizard, follow these steps:
✓ Click on create tab on the ribbon.
✓ Click on more forms from forms group.
✓ Select from wizard from more forms.
✓ A form wizard appears on the screen.
✓ Click the tables/ queries drop down menu to select the table or query on which the form will be based.
✓ Select fields you want to include in the form. Click on a field you want to add and then click the >
button.
✓ The field moves from the “available fields” to the “ selected fields” list.
✓ If you want to add all the fields from a table or query at once click >> button.
✓ Click on next and Select the layout for the form
✓ Click on next and select the style
✓ Enter the title for the form
✓ Click on FINISH
14. What is a Report? Write the steps how can create a report using report wizard?
We can use the report wizard to create a professionally designed report that summarizes data from
your database. The wizard asks you detailed questions about the sources fields, layouts and format you
want then creates a report based on your answers.
To create a report with wizard, follow these steps:
❖ Click on create tab from the ribbon.
❖ Click Repot Wizard from the Reports group
❖ Click the tables/ queries drop down menu to select the table or query on which to base the report.
❖ Select fields you want to include in the form. Click on a field you want to add and then click the >
button.
❖ The field moves from the “available fields” to the “ selected fields” list.
❖ If you want to add all the fields from a table or query at once click >> button.
❖ Click next to continue
❖ To sort the records in your record click the drop down list
❖ Check the field you want to use to sort the records.
❖ Choose ascending or descending sort.
Ms.Amandeep Kaur
9
Ms.Amandeep Kaur