Ms access

29
SUBMITTED BY : SANTHI BIJU SUBMITTED TO :PROF.I CHAKRAPANI MS ACCESS Information Technology for management 1

Transcript of Ms access

Page 1: Ms access

Information Technology for management

1

S U B M I T T E D B Y : S A N T H I B I J U S U B M I T T E D T O : P R O F. I C H A K R A PA N I

MS ACCESS

Page 2: Ms access

Information Technology for management

2

MS ACCESS

Relational data model Data is stored in tables incorporated into database files with extension

“mdb” or “accdb”Standard Windows interfaceStandard Help systemPart of MS Office suite

Page 3: Ms access

Information Technology for management

3

ACCESS DATABASE OBJECTS

Tables contain rows called records and columns called fields.Queries are requests for specific information from a database. Queries are virtual tables built on a given SQL statement.Forms are parts of user interface. Forms are used to enter,

edit or browse data from a database Reports present requested information and allow to create

hard copies

Page 4: Ms access

Information Technology for management

4

DATA TYPES

TextMemoNumbers

Byte Integer Long integer Single Double

Date/time

CurrencyAutoNumberYes/No

Yes/no True/False 1/0

OLE ObjectsHyperlinkLookup Wizard

Page 5: Ms access

Information Technology for management

5

CREATING A TABLE – DESIGN TABLE

In Access 2007, the Create New Table tab should already be highlighted and a new table named table1 created. If this is not the case, click on the Create tab and click on the Table icon. Then pull down the View menu and choose Design View.

Page 6: Ms access

Information Technology for management

6

The Table Design View will appear. Fill in the Field Name, Data Type and Description for each column/field in the table.

CREATING A TABLE – DESIGN TABLE

Page 7: Ms access

Information Technology for management

7

A figure showing the design view with the new table definition.

CREATING A TABLE – DESIGN TABLE

Page 8: Ms access

Information Technology for management

8

Now that all of the fields have been defined for the table, a Primary Key should be defined. Recall that the Primary Key will be used to uniquely identify a record in the table (in this case a Customer). Highlight the Customer ID field and click on the Primary Key button on the button bar.

CREATING A TABLE – DESIGN TABLE

Page 9: Ms access

Information Technology for management

9

As a final step, the table must be saved. Pull down the Office menu and choose the Save As menu item. A dialog box will appear where the name of the new table should be specified. Note that Access gives a default name such as Table1 or Table2.

Simply type over this default name with the name of the table.For this example, name the table: Customer Then click on the OK button.

CREATING A TABLE – DESIGN TABLE

Page 10: Ms access

Information Technology for management

10

Data can be added, deleted or modified in tables using a simple spreadsheet-like display. To bring up this view of a single table’s data, highlight the name of the table and then double-click on the name of the table.

VIEWING AND ADDING DATA TO A TABLE

Page 11: Ms access

Information Technology for management

11

Make sure the Accounts table and the Customer table are both closed. Access will halt creation of any relationships if the table are currently opened. To close a table, either right-click on the table name in the tab above the table and choose the close menu item, or click the small X to right above the table.

Next, display the Relationships screen by clicking on the Database Tools tab and then click on the Relationships button as shown below. 

CREATING RELATIONSHIPS BETWEEN TABLES

Page 12: Ms access

Information Technology for management

12

Next step

CREATING RELATIONSHIPS BETWEEN TABLES

Page 13: Ms access

Information Technology for management

13

The Show Table dialog box will appear by default. Highlight both the Customers table and the Accounts table as shown below and then click on the Add button.

CREATING RELATIONSHIPS BETWEEN TABLES

Page 14: Ms access

Information Technology for management

14

Then click on the Close button to close this dialog box. The Relationships screen will now reappear with the two tables displayed as below:

CREATING RELATIONSHIPS BETWEEN TABLES

Page 15: Ms access

Information Technology for management

15

Access will do its best to determine the Relationship Type (almost always it will select One-to-Many). For this example, Access knows that CustomerID is a key of the Customer table so it chooses this field as the “One” side. 

CREATING RELATIONSHIPS BETWEEN TABLES

Page 16: Ms access

Information Technology for management

16

Queries are a fundamental means of accessing and displaying data from tables. Queries can access a single table or multiple tables.

To create a new query, click on the Create tab. Then click on the Query wizard button.

CREATING AND RUNNING QUERIES

Page 17: Ms access

Information Technology for management

17

When the Query wizard appears, highlight the Simple Query Wizard selection and click on the OK button.

CREATING AND RUNNING QUERIES

Page 18: Ms access

Information Technology for management

18

The first step in the Simple Query wizard is to specify the table for the query and which fields (columns) should be displayed in the query output. Three main sections of this step are:

Tables/Queries – A pick list of tables or queries you have created.

Available Fields – Those fields from the table that can be displayed.

Selected Fields – Those fields from the table that will be displayed.

CREATING AND RUNNING QUERIES

Page 19: Ms access

Information Technology for management

19

Next Step

CREATING AND RUNNING QUERIES

Page 20: Ms access

Information Technology for management

20

The design view will appear as 

CREATING AND RUNNING QUERIES

Page 21: Ms access

Information Technology for management

21

CREATING AND RUNNING A DATA ENTRY FORM

Data entry forms are the primary means of entering data into tables in the database. In a previous section, we described how to add data to a table using a spreadsheet-like view of the data. Data entry forms offer a more user-friendly interface by adding labels for each field and other helpful information.

Page 22: Ms access

Information Technology for management

22

In the first step of the Form wizard, we need to specify the fields from the Customer table that will appear on the form.

CREATING AND RUNNING A DATA ENTRY FORM

Page 23: Ms access

Information Technology for management

23

CREATING AND RUNNING A DATA ENTRY FORM

Page 24: Ms access

Information Technology for management

24

Reports are similar to queries in that they retrieve data from one or more tables and display the records. Unlike queries, however, reports add formatting to the output including fonts, colors, backgrounds and other features. Reports are often printed out on paper rather than just viewed on the screen. They can also be attached to e-mail and exported and posted as web pages.

CREATING AND RUNNING A REPORT

Page 25: Ms access

Information Technology for management

25

In the next step of the Report wizard, is used to specify the fields from the Customer table that will appear on the report. In this case, we want all of the fields to appear. Move each of the fields from the Available Fields side over to the Selected Fields side as in the following figure. Then click on the Next button

CREATING AND RUNNING A REPORT

Page 26: Ms access

Information Technology for management

26

In the next step, the sorting order of the report can be specified. For this example, we will sort the records on the CustomerID field. 

CREATING AND RUNNING A REPORT

Page 27: Ms access

Information Technology for management

27

HYPERLINK

MS ACCESS.mdbMS ACCESS 2.mdb

Page 28: Ms access

Information Technology for management

28

REFERENCES

http://en.wikipedia.org/wiki/Microsoft_Accesshttps://www.google.co.in/search?q=ACCESS&oq=

ACCESS&aqs=chrome..69i57j69i60l2j69i59j69i65j0.3022j0j7&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8#

http://www.slideshare.net/anujmulawat/ms-access-ppt

Page 29: Ms access

Information Technology for management 29