MS Access
MS Access
MS ACCESS
1. What is data base?
Database is a collection of releated information that a certain topic of purpose sort as employee
database. product database student database phone directory etc.
1-DBMS
Database management system
Ex-foxpro,foxball etc.
2-RDBMS
Relational database management system.
3. What is MS-access?
MS-access is a RDBMS a relational database can utilize one or more data table i.e., arranged in row
and column manner.
4. Purpose of MS-access?
1. In MS-access you can create tables for entering data.
2. You can create different types of forMS.
3. You can link MS-access with excel, MS-word, notepad & foxpro.
4. You can create modules to perform some program.
5. You can send and receive date from the internet.
6. You can input tables from other application.
1. Design view
2. Datasheet view
1.Design view:-
Using this view you can design the table, form, queries, macro, pages, reports & modeles. That means
you can specify the data types of different fields and also you can specify the condition and also perform
different calculation.
2.Datasheet view:-
In this view you can display the output of the objects. Which you design in the design view and to entry
of the details.
Step-2:-
Start menu, run or search option, type access, press enter from keyboard.
1. Concept of file:-
File is a storage area. Where the related data information are stored in the form of record.
2. Record:-
The record is an individual information about an individual item or person.
3. Information:-
The collection of data called information.
1. Tables
2. Relationship
3. Queries
4. ForMS
5. Reports
6. Macros
7. Modules
i. Text
ii. Number
iii. Date and time
iv. Hyperlink
v. OLE (object linked embedded)
vi. Look up wizard
vii. Auto number
viii. Memo
ix. Calculated
i. Text:-
It is used to store alpha numril data upto the 255 character. It means you can use alphabets and
number in this data types.
ii. Number:-
It allow only numeric data. It means you can use only number in this data type.
iv. Hyperlink:-
To create hyperlink the data with other field, websites and another documents and file.
Creating a table:-
In access a table by using a there are three methods to create a table using design view.
Step:-
Click on create a tab, click on table design, then the follow the window will appear on the screen design
the table you required, save the table, click on button, goto datasheet view and enter data in the
window.
Emp id Text
Bs Number
Table 1:-
Creating a table having name, marks the table having following field.
Math Number
Sci Num
Eng Num
His Num
Evs Num
Total Calculated
Average Calculated
Table 2:-
Create the employee details showing the following field with their respective data type.
Ta Num
Hra Num
Pf Num
Ppf Num
Click on create tab, in table group select the table templates which you want, enter the data one by one,
save the table.
Click on create tab, in tables group, click on blank table, rename the field name and enter the data, save
the table.
Pincode number
E-mail id Hyperlink
Goto datasheet view enter the website address on E-mail, address on table name in the required cell.
The field name should have the data type hyperlink.
Steps 2:-
Right click on ithyperlink edit hyperlink select the file from listok.
Filter in table:-
What is filter?
A set of criteria apply to record in order to show a subset of records or to so records.
1. Filter by selection:-
In filter record by selection value in a table.
Steps:-
Open the table in datasheet view select the value home tab sort & filter group click on filter by
selection select the required condition.
Note:-
Click on remove filter button from the standard tool bar to remove filter.
2. Filter by from:-
It display the filter by from window. Which allows you to filter data by selecting values in list box.
Steps:-
Open the table in datasheet view home tab in sort & filter group click on advance filter then
click on filter by from select the data from the list box on which you want to filter the table then
click on apply filter button (taggle filter) from sort and filter group.
3. Advance filter:-
It open the filter design view where you can enter the criteria area expression in the filter view to do
what you want in your table.
For Example:-
It you have table name starting from a particular letter. E.g. “A” it you want to see the names which
are started from the letter “A”, then the entire criteria. writer in advance filter like below. “character
name *”A* it you want names ending with the letter “A”, then you have to enter criteria like *”* char
name”*A
For Example:-
It you want to see particular person salary student highest or lowest mark etc.
Steps:-
Open the table in datasheet view click on home tab click on sort & filter group click on advance
filters Enter the condition in criteria box click on apply filter button to stop the filter click on
taggle filter.
Step:-
Open the table in data sheet view right click on any column click on no filter option select the
condition then set the condition and press enter key from keyboard.
Field properties-
Field size:-
You can use the field size properties to set the maximum on minimum size for the data stored in a field
set to text data type. The minimum and maximum size of text data type is 0 to 255.
It the data type is number. Then the field size properties setting and there are related in the following
way.
a. Format properties:-
It allow you to display your data in a form that differs from the actual key stroke use to enter the data.
Format vary according to the data type you have defined.
Format Display
General date 3/12/2015.5:10 pm
Caption:-
You can use this property to provide and alternative label. That will appear in place of actual field name.
Default values:-
It is a value that is displayed automatically for the field. When you enter the data. This value may be any
value that matches the data type of the field.
Validation Role:-
This property is used to specify the condition in the required field so that you can restrict yourself from
entering wrong data. The rule uses >,<,≥,≤ operators.
Validation text:-
This property is used to enter the message that will satisfy the validation rule.
Amount Number
Conditions:-
a) The customer name should not exceed table characters.
b) Flight no should be off eight (8) digit.
c) Origin and destiration should be displayed in capital letter. The list should be like.
-KURKhordha
-BBSRBhubaneswar
-MUMmumbai
-NOLSnew delhi
-VSKPvisakha patram
-RJYrajamundry
-CTCcuttack
d) N0 of seats must be >3.
e) The amount for 3 people is 6000/-. the consumer name compulsory.
Required:-
This property provide the 2 options that is yes/no. when you set this property to “Yes” then data entry
for that field is compulsory.
Indexed:-
This property used to set a single field index. It is used to sort and group the data. This property is used
the following certains.
1) No default- no index.
2) Yes (duplicate ok) / the index allow duplicate entry.
3) No (duplicate)/ this index does not allow duplicate entry.
Input mask:-
Input mask allow you to have more control over data entered by defining data. Validation for (each
character) that is entered in the field. And input mask consists of letter display character such as
parenthesis “()”, hyphen”-“.
Math Number
Sci num
Civ num
Geo num
Hin num
Total Calculated
Average calculated
Formula:- Total
=math+sci+civ+geo+hin
Average
=Total/5(or)
=math+sci+civ+geo+hin/5
Conditions:-
The name of the student should be like. First letter capital and other should be small letter.
click on access
click on browse
2 ABC 52 64
3 DEF 62 72
5 ABC 62 64
6 XYZ 52 45
Note:-
(forget - it you enter no0 upto 5 in access then continue with 6 in MS-excel.)
What is append?
Append means merging 2 table from MS-access application or from different applications. By giving
same field name.
Creating a form
A form provide a great