Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Ms Access database matrial files in PDF formate , Study notes of Computer Science

Ms Access database matrial files in PDF formate

Typology: Study notes

2016/2017

Uploaded on 09/01/2017

RiteshPatel
RiteshPatel 🇮🇳

1 document

1 / 297

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Ms Access database matrial files in PDF formate and more Study notes Computer Science in PDF only on Docsity!

i

About the Tutorial

Microsoft Access is a Database Management System (DBMS) from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software- development tools. It is a part of the Microsoft Office suite of applications, included in the professional and higher editions. This is an introductory tutorial that covers the basics of MS Access.

Audience

This tutorial is designed for those people who want to learn how to start working with Microsoft Access. After completing this tutorial, you will have a better understating of MS Access and how you can use it to store and retrieve data.

Prerequisites

It is a simple and easy-to-understand tutorial. There are no set prerequisites as such, and it should be useful for any beginner who want acquire knowledge on MS Access. However it will definitely help if you are aware of some basic concepts of a database, especially RDBMS concepts.

Copyright and Disclaimer

 Copyright 201 6 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at contact@tutorialspoint.com.

iii

    1. MS ACCESS — QUERY DATA
    • Create Select Query
    1. MS ACCESS — QUERY CRITERIA
    1. MS ACCESS — ACTION QUERIES
    • Create an Append Query
    1. MS ACCESS — CREATE QUERIES.......................................................................................
    • Create an Update Query
    • Create a Delete Query
    • Create a Make Table Query
  • 1 2. MS ACCESS — PARAMETER QUERIES
    1. MS ACCESS — ALTERNATE CRITERIA
    1. MS ACCESS — RELATING DATA
    • Normalization
    • Defining Relationships
    1. MS ACCESS — CREATE RELATIONSHIPS............................................................................
    • Why Create Table Relationships?
    1. MS ACCESS — ONE-TO-ONE RELATIONSHIP.....................................................................
    1. MS ACCESS — ONE-TO-MANY RELATIONSHIP
    1. MS ACCESS — MANY-TO-MANY RELATIONSHIP
    1. MS ACCESS — WILDCARDS iv
    • ANSI-89 wildcard characters
    • ANSI-92 wildcard characters
    1. MS ACCESS — CALCULATED EXPRESSION
    1. MS ACCESS — INDEXING................................................................................................
    1. MS ACCESS — GROUPING DATA
    • Aggregate Query
    • Concatenation in Access
    1. MS ACCESS — SUMMARIZING DATA
    1. MS ACCESS — JOINS
    • What is Join
    • Left Outer Join & Right Outer Join
    • Self-Joins
    1. MS ACCESS — DUPLICATES QUERY WIZARD
    1. MS ACCESS — UNMATCHED QUERY WIZARD
    1. MS ACCESS — CREATE A FORM
    • Types of Bound Forms
    • Creating Forms
    • Multiple Item Form
    • Split Form
    1. MS ACCESS — MODIFY A FORM..................................................................................... v
    • Controls
    • Themes
    1. MS ACCESS — NAVIGATION FORM
    1. MS ACCESS — COMBO BOX
    • Combo Box
    1. MS ACCESS — SQL VIEW
    1. MS ACCESS — FORMATTING..........................................................................................
    1. MS ACCESS — CONTROLS AND PROPERTIES
    • Bound Controls
    • Unbound Controls
    • Control Types
    1. MS ACCESS — REPORTS BASICS
    • Create a Report Using Report Design
    1. MS ACCESS — FORMATTING REPORTS
    1. MS ACCESS — BUILT-IN-FUNCTIONS
    • Functions
    • Date & Time Functions
    • DateDiff() Function
    • Format() Function
    • IIf() Function
    1. MS ACCESS — MACROS vi
    • Creating a Macro
    1. MS ACCESS — DATA IMPORT
    • Different Types of Data Access Can Import
    1. MS ACCESS — DATA EXPORT

Microsoft Access is a Database Management System (DBMS) 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.  Microsoft Access is just one part of Microsoft’s overall data management product strategy.  It stores data in its own format based on the Access Jet Database Engine.  Like relational databases, Microsoft Access also allows you to link related information easily. For example, customer and order data. However, Access 2013 also complements other database products because it has several powerful connectivity features.  It can also import or link directly to data stored in other applications and databases.  As its name implies, Access can work directly with data from other sources, including many popular PC database programs, with many SQL (Structured Query Language) databases on the desktop, on servers, on minicomputers, or on mainframes, and with data stored on Internet or intranet web servers.  Access can also understand and use a wide variety of other data formats, including many other database file structures.  You can export data to and import data from word processing files, spreadsheets, or database files directly.  Access can work with most popular databases that support the Open Database Connectivity (ODBC) standard, including SQL Server, Oracle, and DB2.  Software developers can use Microsoft Access to develop application software. Microsoft Access stores information which is called a database. To use MS Access, you will need to follow these four steps:  Database Creation - Create your Microsoft Access database and specify what kind of data you will be storing.  Data Input - After your database is created, the data of every business day can be entered into the Access database.  Query - This is a fancy term to basically describe the process of retrieving information from the database.

 Report (optional) - Information from the database is organized in a nice

presentation that can be printed in an Access Report.

1. MS Access – Overview

Microsoft Access has the look and feel of other Microsoft Office products as far as its layout and navigational aspects are concerned, but MS Access is a database and, more specifically, a relational database.  Before MS Access 2007, the file extension was *.mdb , but in MS Access 2007 the extension has been changed to *.accdb extension.  Early versions of Access cannot read accdb extensions but MS Access 2007 and later versions can read and change earlier versions of Access.  An Access desktop database (.accdb or .mdb) is a fully functional RDBMS.  It provides all the data definition, data manipulation, and data control features that you need to manage large volumes of data.  You can use an Access desktop database (.accdb or .mdb) either as a standalone RDBMS on a single workstation or in a shared client/server mode across a network.  A desktop database can also act as the data source for data displayed on webpages on your company intranet.  When you build an application with an Access desktop database, Access is the RDBMS.

Data Definition

Let us now understand what Data Definition is:  In document or a spreadsheet, you generally have complete freedom to define the contents of the document or each cell in the spreadsheet.  In a document, you can include paragraphs of text, a table, a chart, or multiple columns of data displayed with multiple fonts.  In spreadsheet, you can have text data at the top to define a column header for printing or display, and you might have various numeric formats within the same column, depending on the function of the row.  An RDBMS allows you to define the kind of data you have and how the data should be stored.  You can also usually define rules that the RDBMS can use to ensure the integrity of your data.  For example, a validation rule might ensure that the user can’t accidentally store alphabetic characters in a field that should contain a number.

2. MS Access – RDBMS

Data Manipulation

Working with data in RDBMS is very different from working with data in a word processing or spreadsheet program.  In a word processing document, you can include tabular data and perform a limited set of functions on the data in the document.  You can also search for text strings in the original document and, with ActiveX controls, include tables, charts, or pictures from other applications.  In a spreadsheet, some cells contain functions that determine the result you want, and in other cells, you enter the data that provides the source information for the functions. An RDBMS provides you many ways to work with your data. For example,  You can search a single table for information or request a complex search across several related tables.  You can update a single field or many records with a single command.  You can write programs that use RDBMS commands to fetch data that you want to display and allow the user to update the data. Access uses the powerful SQL database language to process data in your tables. Using SQL, you can define the set of information that you need to solve a particular problem, including data from perhaps many tables.

Data Control

Spreadsheets and word processing documents are great for solving single-user problems, but they are difficult to use when more than one person needs to share the data.  When you need to share your information with others, RDBMS gives you the flexibility to allow multiple users to read or update your data.  An RDBMS that is designed to allow data sharing also provides features to ensure that no two people can change the same data at the same time.  The best systems also allow you to group changes (which is also known as transaction) so that either all the changes or none of the changes appear in your data.  You might also want to be sure that no one else can view any part of the order until you have entered all of it.  Because you can share your Access data with other users, you might need to set some restrictions on what various users are allowed to see or update.

 You can also define queries that create new tables from data in one or more existing tables.

Form

Form is an object in a desktop database designed primarily for data input or display or for control of application execution. You use forms to customize the presentation of data that your application extracts from queries or tables.  Forms are used for entering, modifying, and viewing records.  The reason forms are used so often is that they are an easy way to guide people toward entering data correctly.  When you enter information into a form in Access, the data goes exactly where the database designer wants it to go in one or more related tables.

Report

Report is an object in desktop databases designed for formatting, calculating, printing, and summarizing selected data.  You can view a report on your screen before you print it.  If forms are for input purposes, then reports are for output.  Anything you plan to print deserves a report, whether it is a list of names and addresses, a financial summary for a period, or a set of mailing labels.  Reports are useful because they allow you to present components of your database in an easy-to-read format.  You can even customize a report's appearance to make it visually appealing.  Access offers you the ability to create a report from any table or query.

Other MS Access Objects

Let us now take a look at other MS Access objects. Macro This object is a structured definition of one or more actions that you want Access to perform in response to a defined event. An Access Macro is a script for doing some job. For example, to create a button which opens a report, you could use a macro which will fire OpenReport action.  You can include simple conditions in macros to specify when one or more actions in the macro should be performed or skipped.  You can use macros to open and execute queries, to open tables, or to print or view reports.

 You can also run other macros or Visual Basic procedures from within a macro.  Data macros can be attached directly to table events such as inserting new records, editing existing records, or deleting records.  Data macros in web apps can also be stand-alone objects that can be called from other data macros or macro objects. Module Module is an object in desktop databases containing custom procedures that you code using Visual Basic. Modules provide a more discrete flow of actions and allow you to trap errors.  Everything that can be done in a macro can also be done in a module, but you don't get the macro interface that prompts you what is needed for each action.  Modules are far more powerful, and are essential if you plan to write code for a multi-user environment, because macros cannot include error handling.  Modules can be standalone objects containing functions that can be called from anywhere in your application, or they can be directly associated with a form or a report to respond to events on the associated form or report.

Let us enter project in the search box and press Enter. You will see the database templates related to project management. Select the first template. You will see more information related to this template.

After selecting a template related to your requirements, enter a name in the File name field and you can also specify another location for your file if you want. Now, press the Create option. Access will download that database template and open a new blank database as shown in the following screenshot.

You will now see all the objects types — tables, queries, etc.

Create Blank Database

Sometimes database requirements can be so specific that using and modifying the existing templates requires more work than just creating a database from scratch. In such case, we make use of blank database. Step 1: Let us now start by opening MS Access.

Step 2: Select Blank desktop database. Enter the name and click the Create button. Step 3: Access will create a new blank database and will open up the table which is also completely blank.