Sie sind auf Seite 1von 25

1.

Intoduction to MS Access
Microsoft Office Access, previously known as Microsoft Access, is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. It is a member of the Microsoft Office suite of applications, included in the Professional and higher editions or sold separately. On May 12 2010, the current version of Microsoft Access 2010 was released by Microsoft in Office 2010; Microsoft Office Access 2007 was the prior version.

2. To create a database
Microsoft Access provides three methods to create an Access database. You can create a database by using the Database wizard. The wizard lets you choose from one of the built-in templates, and customize it to some extent. Then it creates a set of tables, queries, forms, and reports, and also a switchboard for the database. The tables do not have any data in them. Use this method if one of the built-in templates closely match your requirements. If you are using Access 2003, you can search <Office Online> for Access templates. Downloading a template is the quickest way to create a database. If you find a template that closely matches your requirements, follow this method. A template is an Access database file (*.mdb) and includes tables, queries, forms, and reports. The tables do not have any data in them. After opening the database, you can customize the database and the objects. If you want to start creating a database based on your design, create a blank database, then add the tables, forms, reports, and other objects individually this is the most flexible method, but it requires you to define each database element separately.

3. Create table using design view


i. ii. iii. Go to create tab, click on view and select design view Give the name to table Fill th field name with the respective data types

4. Create table using wizard

5. Create table by entering data

6. Introduction to query
A query is a request for data results, for action on data, or for both. You can use a query to answer a simple question, to perform calculations, to combine data from different tables, or even to add, change, or delete table data. Queries that you use to retrieve data from a table or to make calculations are called select queries. Queries that add, change, or delete data are called action queries.

7. Query to get age of all employees


SELECT emp_no, emp_age FROM Table1;

8. To get emp_no, emp_name and BS<6500


SELECT emp_no,emp_name FROM Table1 where emp_sal<6500 ;

9. To get name and basic salary in ascending order


SELECT emp_name,emp_sal FROM Table1 order by emp_sal ASC ;

10. To get emp name, basic salary between 5500 and 8000
SELECT emp_name, emp_sal FROM Table1 where emp_sal BETWEEN 5500 and 8000 ;

11. To get emp name and emp no which starts with A


SELECT emp_no, emp_name FROM Table1 where emp_name like"A*" ;

12. To get emp no, emp name whose salaries are 5000, 6000, 7000
SELECT emp_no,emp_name FROM Table1 where emp_sal in(5000, 6000, 7000) ;

13. To get emp name working in dep no 10


SELECT emp_name FROM Table1 where emp_depno=10 ;

14. To get emp name working in coding dept


SELECT emp_name FROM Table1 where emp_dep="coding" ;

15.To find unmatched query


Creating a Query that show unmatched records based on two or more criteria. 'Find Unmatched Query Wizard', allows you to find records in one table that do not have related records in another table. However, this wizard only allows you to use one criteria to select the non-matching records.

16. Intoduction to forms


A form is a database object that you can use to create a user interface for a database application. A "bound" form is one that is directly connected to a data source such as a table or query, and can be used to enter, edit, or display data from that data source. Alternatively, you can create an "unbound" form that does not link directly to a data source, but which still contains command buttons, labels, or other controls that you need to operate your application.

17. Creating form using wizard

Click on Finish

18. Creating forms in design view

19. Creating forms using columnar

Click on finish

20. Create auto form tabular

Click on finish

21. Create auto form data sheet

Click on finish

22. Create auto form pivot table


I. II. Go to create tab, click on more forms. Click on pivot table.

III.

Drag items to the field in the row area

23. Create auto form pivot chart


i. Go to create tab, click on pivot chart

ii.

Drag items to the categorical fields

24. Introduction to reports


A report is a database object that you use to display and summarize data. Reports provide a way to distribute or archive snapshots of your data, either by being printed out, converted to PDF or XPS files, or exported to other file formats. Reports can provide details about individual records, summaries across many records, or both. You can also use Access reports to create labels for mailings or other purposes.

25. Create report in design view


Click on Report under Create tab

26. Create report using report wizard


Click on Report wizard under Create tab

Das könnte Ihnen auch gefallen