0% found this document useful (0 votes)
19 views

DPT Dbase Note

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

DPT Dbase Note

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Definition of a database

Database can be defined as a computer based record keeping system whose overall purpose is
to keep and maintain information. It can also be defined as a collection of information related to
a particular subject or purpose.
Advantages of database
1. Data Sharing: data in database can be shared btw two or more applications without
having to create a new file.
2. Avoid Inconsistency: this means that obtaining wrong or unreliable information from a
database.
3. Reducing Data Redundancy: here each application in a non-database system has its own
file which result in redundancy in stored data which led to waste in storage space.
4. Enforce Security: database administrator (DBA) ensures that only authorized users gain
access to data in a database.
5. Maintain Integrity: data in the database is always accurate i.e. it represents user’s
intention.
Components of a database
1. Data: this is basic raw facts, about people, places, events stored in a database.
2. Hardware: this refers to the physical components of a computer system.
3. Database software: database software are programs that handles request by the users
for access to the database. This types of applications are called database management
system (DB MS). And DBMS is a complex software that constructs, maintains database. It
provides the user interface between the users and the data in any existing database.
4. User of database: users of database can be categorized into:
 Application Programmers: these are people that write a database program using
languages like java, C-languages etc.
 Database Administrator: is the person in charge of changing the affairs of a
database environment.
Functions of a database Administrator
1. He determines what information is to be stored in the database.
2. He decides the storage structure of the database, and the access methods to be used in
accessing the database.
3. He liases with the end users so as to ensure that their demands are met.
4. He is responsible for making changes and adjustment when the need arises in the
database as well as monitoring the continuous performance of the database.
5. He ensures the security of data in the database.

What is Microsoft 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.

Important Terms and Basic Objects


Now in this Microsoft Access tutorial, we will learn about some important terms and basic
objects in MS Access:
Database File: It is a file which stores the entire database. The database file is saved to your hard
drive or other storage e devices.
Data types: Data types are the properties of each field. Every field has one data type like text,
number, date, etc.
Table
A Table is an object which stores data in Row & Column format. 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 interface for a database
application.
Forms help you to display live data from the table. It mainly used to ease the process of data
entry or editing.

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.
Macros
Macros are mini computer programming constructs. They allow you to set up commands and
processes in your forms, like, searching, moving to another record, or running a formula.
Modules:
Modules are procedures (functions) which you can write using Visual Basic for
Applications (VBA).

Microsoft Access Data Types


MS Access common data types are listed below:
Type
Description Size
Data

Text, including numbers which does


Short Text not need calculation. (e.g., Mobile Up to 255 characters.
numbers).

This data type is used for lengthy


Long Text Maximum 63, 999 characters.
text or alphanumeric data.

Numeric data type used for storing


Number 1, 2, 4, 8, and 16 bytes.
mathematical calculations.

Store Date/time for the years 100


Date/Time 8 bytes.
through 9999.

It allows you to store currency values


Currency and numeric data with one to four 8 bytes.
decimal places.

Assign a unique number or assigned


Auto by Microsoft Access when any new Four bytes (16 bytes if it is set as a Replication
Number record is created. Usually used as the ID).
primary key

It only stores logical values Yes and


Yes/No 1 bit
No.

It stores files, such as digital photos.


Up to 2
Attachment Multiple files can be attached per
GB Data can be stored.
record.

OLE objects can store audio, video, Up to 2


OLE objects
other Binary Large Objects. GB data can be stored.

Hyperlink Text or combinations of text and Each part of a Hyperlink data type allows you to
numbers stored. That text is used as store a maximum 2048
hyperlink address. characters.

Helps you to create an expression


You can create an expression which uses data
Calculated that uses data from one or more
from one or more fields.
fields.

Differences between Access and Excel


Microsoft Access and Excel are very similar yet very different. Here, are some important
difference points between both of them-

Access Excel

Deals with text, numbers, files and


Microsoft Excel generally deals with numerical data
all kinds of data

All the data is stored one time, in Lots of worksheets or documents are a store with similar,
one place. repeated data.

Helps you to build highly functional


data entry formsand report Only the primary data entry screen is available.
templates.

Users will be able to enter the data


more Data accuracy and speed is not much because of the format.
efficiently and accurately.

Advantages of MS Access
Now in this MS Access Tutorial, we will learn the pros/benefits for using MS Access application:
 Access offers a fully functional, relational database management system in minutes.
 Easy to import data from multiple sources into Access
 You can easily customize Access according to personal and company needs
 Microsoft Access online works well with many of the development languages that work
on Windows OS
 It is robust and flexible, and it can perform any challenging office or industrial database
tasks.
 MS-Access allows you to link to data in its existing location and use it for viewing,
updating, querying, and reporting.
 Allows you to create tables, queries, forms, and reports, and connect with the help of
Macros
 Macros in Access is a simple programming construct with which you can use to add
functionality to your database.
 Microsoft Access online can perform heterogeneous joins between various data sets
stored across different platforms

Disadvantages of MS Access
Here, are the cons for using 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
 Technical limit is 255 concurrent users. However, the real-world limit is only 10 to 80
(depending on the type of application which you are using)
 It requires a lot more learning and training compares with other Microsoft programs

GETTING STARTED WITH Ms-ACCESS 2013

In this unit, we will be covering the basic process of starting Access and
creating a database. This chapter will also explain how to create a desktop
database by using a template and how to build a database from scratch.
To create a database from a template, we first need to open MS Access and you will see the
following screen in which different Access database templates are displayed.
To view the all the possible databases, you can scroll down or you can also use the search box.

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.
Now, click the Navigation pane on the left side and you will see all the other objects that come with this database.

Click the Projects Navigation and select the Object Type in the menu.

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.

Every field in a table has properties and these properties define the field's
characteristics and behavior. The most important property for a field is its data type.
A field's data type determines what kind of data it can store. MS Access supports
different types of data, each with a specific purpose.
 The data type determines the kind of the values that users can store in any
given field.
 Each field can store data consisting of only a single data type.

When you create a database, you store your data in tables. Because other database
objects depend so heavily on tables, you should always start your design of a
database by creating all of its tables and then creating any other object. Before you
create tables, carefully consider your requirements and determine all the tables that
you need.
Let us try and create the first table that will store the basic contact information
concerning the employees as shown in the following table:

Field Name Data Type


EmployeelD AutoNumber
FirstName Short Text
LastName Short Text
Address1 Short Text
Address2 Short Text
City Short Text
State Short Text
Zip Short Text
Phone Short Text
PhoneType Short Text
Let us now have short text as the data type for all these fields and open a blank database in Access.

This is where we left things off. We created the database and then Access automatically opened up this table-one-
datasheet view for a table.

Let us now go to the Field tab and you will see that it is also automatically created. The ID which is an AutoNumber
field acts as our unique identifier and is the primary key for this table. The ID field has already been created and we
now want to rename it to suit our conditions. This is an Employee table and this will be the unique identifier for our
employees.
Click on the Name & Caption option in the Ribbon and you will see the following dialog box.

Change the name of this field to EmployeeID to make it more specific to this table. Enter the other optional
information if you want and click Ok.

We now have our employee ID field with the caption Employee ID. This is automatically set to
auto number so we don't really need to change the data type.
Let us now add some more fields by clicking on click to add.

Choose Short Text as the field. When you choose short text, Access will then highlight that field name automatically
and all you have to do is type the field name.

Type FirstName as the field name. Similarly, add all the required fields as shown in the following screenshot.
Once all the fields are added, click the Save icon.

You will now see the Save As dialog box, where you can enter a table name for the table

Enter the name of your table in the Table Name field. Here the tbl prefix stands for table. Let us click Ok and you will
see your table in the navigation pane.
Table Design View
As we have already created one table using Datasheet View. We will now create another
table using the Table Design View. We will be creating the following fields in this table.
These tables will store some of the information for various book projects.

Field Name Data Type


Project ID AutoNumber
ProjectName short test
ManagingEditor Short Text
Author Short Text
PStatus Short Text
Contracts Attachment
ProjectStart Date/Time
ProjectEnd Date/Time
Budget Currency
ProjectNotes Long Text
In the tables group, click on Table and you can see this looks completely different from the Datasheet View. In this
view, you can see the field name and data type side by side.

We now need to make ProjectID a primary key for this table, so let us select ProjectID and click on Primary Key
option in the ribbon.
You can now see a little key icon that will show up next to that field. This shows that the field
is part of the table’s primary key.
Let us save this table and give this table a name.

Click Ok and you can now see what this table looks like in the Datasheet View.

Let us click the datasheet view button on the top left corner of the ribbon.
If you ever want to make changes to this table or any specific field, you don't always have to go back to the Design
View to change it. You can also change it from the Datasheet View. Let us update the PStatus field as shown in the
following screenshot.

Click Ok and you will see the changes.

Once you created a table you can go ahead to add data to the various fields of the table.
CREATING QUERY, REPORT AND FORMS

Create a select query


Create a query to focus on specific data.

1. Select Create > Query Wizard .


2. Select Simple Query, and then OK.
3. Select the table that contains the field, add the Available Fields you
want to Selected Fields, and select Next.
4. Choose whether you want to open the query in Datasheet view or modify
the query in Design view, and then select Finish.

Create a split form


A split form gives you two views of the data at the same time — a Datasheet
view and a Form view. For example, use the Datasheet view to find a record
and the Form view to edit it.

1. In the Navigation Pane, select a table or query that contains the data.
2. Select Create > More Forms > Split Form.

Create a report

1. Select Create > Report Wizard.


2. Select a table or query, double-click each field in Available Fields you
want to add it to the report, and select Next.
3. Double-click the field you want to group by, and select Next.

Complete the rest of the wizard screens, and select Finish.


CREATE A MAKE TABLE QUERY
1. Click the Create tab on the ribbon.
2. Click the Query Design button.

The Query Design window and Show Table dialog box both appear. Here
you need to select the tables and/or queries containing the data you want to
include in your new table.

3. Double-click the tables and queries you want to add and click Close.

Now add the fields you want to use in your new table.
4. Select the fields that you want to include and click Close.
5. Add any limiting criteria.

Now you need to change the query type to make it a Make Table query.

6. Click the Make Table button on the ribbon.

Access displays the Make Table dialog box. Here you need to tell Access
the name of the new table.

7. Enter a name for your table and click OK.


In the Table Name box, you can also choose to replace an existing table
instead of creating a new one. To do this, click the Table Name list arrow
and select a table. If the table you're replacing is in another database, first
select the Another Database option and browse to the database.
PREVIEW AND RUN A QUERY
Now you're ready to have the Make Table query create the new table. Preview the
results of the query first.
1. Click View to preview the query in Datasheet View.

The Make Table query displays the records it will use to create the new
table.
2. Click View to return to Design View.
Now you can run the query to create the new table.
3. Click the Run button on the ribbon.
Access asks you to confirm the creation of the table.
4. Click Yes.
Access creates the new table based on the results of the Make Table query.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy