SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
St. Michael Foundation                                                          MS Access ECDL Notes Vers. 1.0




                   MS ACCESS
                                     ECDL NOTES
                                      MODULE 5
Tables ...................................................................................................................3
Field Properties.....................................................................................................4
Primary Key ..........................................................................................................5
Saving your table ..................................................................................................6
Relationships ........................................................................................................6
Adding data into the tables .................................................................................10
Changing between Table View and Design view ................................................11
Indexing ..............................................................................................................11
Duplicate Indexed Fields.....................................................................................12
Queries ...............................................................................................................13
  Simple Queries................................................................................................15
  Compound Queries .........................................................................................16
  Delete and move columns in queries ..............................................................17
Forms..................................................................................................................18
  Adding a label to a form ..................................................................................20
Reports ...............................................................................................................22




                                                                                                                         1
St. Michael Foundation                                  MS Access ECDL Notes Vers. 1.0


                                      MS Access

Microsoft Access is a database application, it is moreover known as a relational
database application. This means that fields in a record are related and changes
made to one field would affect the others. This will be explained in more detail
within these notes.


The ECDL access module requires that the user is familiar with:


                   •     Tables
                   •     Queries
                   •     Forms
                   •     Reports


The first thing that you need to do to begin a new database is to open MS Access
and create a database using the following steps



       1.                          Choose blank database
       2. Select where you are going to save the database and name the new
            database then click the create button to set it up




                                                                                    2
St. Michael Foundation                                  MS Access ECDL Notes Vers. 1.0


Note: that once you have setup the database it is not recommended that you
change the location of the folder. The next step is to construct the tables that will
hold your data.


Tables
The construction of a table consists of


   •    Fields – The lowest level of data e.g. Name or Surname
   •    Records – A collection of fields e.g. Name and Surname and Age
   •    Table – A collection of records


Example:


                              Name Surname Age
                               Paul       Green    12
                               Mary       White    14              Field Name
                               Jane        Red     11
                               Mark        Blue    12
       Table                   Edith      Black    13
                               Jake       Purple   15
                                                                     Record




   Note:
   For the ECDL it is recommended that you do not use Wizards to construct
   your tables and Queries. Use wizards to construct your forms and wizards.


To construct your table:


   1. Make sure you have selected the Table selection from the objects menu
   2. Select Create table in Design View




                                                                                    3
St. Michael Foundation                                   MS Access ECDL Notes Vers. 1.0




The Table view will be displayed on your screen. Enter the details, see example
below:


Enter the following details into a Table:


         Primary Key?       Field Name            Data Type             Properties
         Primary Key        StudentID             Autonumber
                            Name                  Text                  20
                            Surname               Text                  30
                            Age                   Number                Byte


This is what the above data will look like in a table.




To arrange the field properties you select the field you would like to edit, and then
change the properties in the field properties pane located at the bottom of your
interface.


Field Properties
For example if you require that the Name field would allow the operator to enter
30 characters then change it from the Field Properties.


In this field you can also change the numric type e.g. a numberic type can be a
Byte, Integer or Long integer.


                                                                                     4
St. Michael Foundation                               MS Access ECDL Notes Vers. 1.0


In Format you can set the decimal points




Primary Key

To set the primary key to a field either:


   •    Right click on the field name and from the menu that appears select
        Primary Key




   •    Select the Field name and from the menu bar select the primary key icon




       Primary Key Definition: The Primary Key ensures that no two records in a
       database contain the same value for that field. It is the field that uniquely
       identifies the record. E.g. In Malta your ID Card number is unique so it is
       ideal to be used as a primary key for a database; another example is a
       Passport number.



                                                                                  5
St. Michael Foundation                              MS Access ECDL Notes Vers. 1.0



Saving your table

You can save your table in one of two ways:


   •   Close the table view, a window will pop up asking if you want to save your
       table, save with your required name.
   •   Click on File > Save as > save with your required name.




 Note: It is a good idea when naming your tables/Queries/Forms and Reports that you
 mention the type of style being saved, example Students Table, or Students Form.
 This will come in useful when you need to make a report and a table and a form have
 the same name

Your finished table now shows in the Table view




Relationships

Relationships are formed between two or more tables. The idea of relationships
is to join tables that are inter-related, for example a DVD shop would have at




                                                                                6
St. Michael Foundation                              MS Access ECDL Notes Vers. 1.0


least two tables, on that shows the DVD titles stock and the other that shows the
clients that frequent the establishment. See example below




                                                  The two tables that will be
                                                  related to show the DVD’s
                                                  that a client borrows




Before we continue you have to know that there are three types of relationships:


   •   Many to Many Relationships (These are hardly ever used)
   •   One to One Relationships (Not used in the ECDL)
   •   One to Many Relationships


Since the ECDL syllabus only requires the One to May relationship this will now
be explained.


In a DVD shop one client is allowed to borrow many DVD’s, this may be depicted
as follows:


                              1 client            ∞ DVD


We therefore need to relate the tables to show this scenario. The two tables are
shown below




Note: MEMBER ID is shown in both tables


                                                                                   7
St. Michael Foundation                                     MS Access ECDL Notes Vers. 1.0


We therefore will relate the two tables based upon the MEMBER ID Field, as
shown in the following diagram




To open relationships select the relationship icon             from your toolbar


You now need to add the tables that will show in your relationship to do this
either click on the table you want to include and click ADD or else double click
the tables you would like to include.




                             Figure 1 shows the added tables




                                                                                       8
St. Michael Foundation                                MS Access ECDL Notes Vers. 1.0


To create the relationship drag the Membership ID (in this case) from one table
and drop it onto the same field in the other table, the following window will appear




                                                                The Membership ID
                                                                fields from both tables



                                                                Select this field to setup
                                                                the relationship



                                                                  The relationship type




Once you have completed the above this is what your screen will look like, note
the relationship symbols, there is now a one to many relationship between the
Clients and the DVD tables. One client can now borrow many DVD’s.




Close the relationship window and save changes. Your relationship is now
complete.




                                                                                   9
St. Michael Foundation                                           MS Access ECDL Notes Vers. 1.0



Adding data into the tables

To enter data into the tables you can double click (or right click on table and
select open). In the open table enter your data, see example below




                             Notice the + signs, these show that the table is
                             linked to another (Because of relationship)




                         Figure 2 Shows the same table with the '+' expanded




                         Figure 3 Shows data entered into the expanded fields


 Note: Data entered into the expanded fields will go directly into its
 relative table




                                                                                            10
St. Michael Foundation                                           MS Access ECDL Notes Vers. 1.0




       Figure 4 Note the data entered in the previous figure goes directly into the DVD table.


Note that the last column shows the related field in the Clients table




Changing between Table View and Design view
To change between the Table view and the Design view select the relative icon
from the menu bar

   •         - Design View
   •         - Table View

Select one to go the other, the image will switch over.



Indexing
Indexing is an auto sort of the data entered into the fields so that the database
search engine would be able to retrieve the data faster in a search.
To activate the indexing select the field you would like to index and then the
Index icon         from your menu bar. The following window will open.




                                                                                                 11
St. Michael Foundation                                       MS Access ECDL Notes Vers. 1.0




                         Figure 5 shows the indexing interface window


To set a field to indexed select the field name in a blank ‘box’ in the field name
column, a drop down list will appear and select the field you require to be
indexed.




Duplicate Indexed Fields
Fields that allow the user to insert
duplicate fields are set in the Field
properties window of that field.




                                                                                        12
St. Michael Foundation                              MS Access ECDL Notes Vers. 1.0


These may be set to one of three options:




   •   NO – The field is not indexed
   •   YES (Duplicates OK) – The field is indexed and duplicates are allowed
       (e.g. more that one person with the same surname)
   •   YES (No Duplicates) – The field is indexed but duplicates are not allowed
       (e.g. there cannot be two people with the same surname)



Queries
There are two types of queries:

   1. Simple Query – asks one ‘question’ to your database
   2. Compound Query – asks two or more ‘questions’ to your database

Remember: For queries it is NOT suggested that you use the wizard.

Select the Query Tab and then select to create a Query in Design view




From the window that opens select the tables and add them to the query, you
can do this either by selecting each table and the clicking Add or else by double
clicking the required tables




                                                                               13
St. Michael Foundation                             MS Access ECDL Notes Vers. 1.0


The tables are now added to the query, see the image below




To add fields to the query, you can:

   •   Double click on each field to be added
   •   Select Field>Press Combo box arrow > Select required field
   •   Drag the required field into the first field/row.




                                                                              14
St. Michael Foundation                                MS Access ECDL Notes Vers. 1.0




Simple Queries

To perform a simple query enter the details you are looking for in the criteria cell
under the required field. In the following example we are looking for a client with
the surname Smith. Once you have entered the text press the red exclamation
mark on your toolbar. (!)

                                                         When you have entered the
                                                         data to lookup press the red
                                                         exclamation mark




                                                            Enter the data to be
                                                            looked up here




This is the result of the above query, there were no clients with the surname
Smith




The above query was amended to search for clients with the surname White, this
is the result




                                                                                   15
St. Michael Foundation                              MS Access ECDL Notes Vers. 1.0


To save your query either:

   •   Close the query and the application will prompt you to save your work
   •   File > Save As > Name your query


Compound Queries

As mentioned earlier a compound query looks up two or more criteria. See the
following example which looks up the DVD entitled Snow White and which is
available. Once you have entered the text press the red exclamation mark on
your toolbar. (!)




This is the result of the above query.




To save your query either:

   •   Close the query and the application will prompt you to save your work
   •   File > Save As > Name your query




                                                                               16
St. Michael Foundation                               MS Access ECDL Notes Vers. 1.0




Delete and move columns in queries

To delete a column in a query select the grey area just above the field name, this
will highlight the entire column, now press the Del (delete) key on you keyboard.
The column is deleted.




To move the columns select the same grey area as above, now left click the
same area and keep the mouse button depressed whilst dragging the column to
the required position, let go to drop in the required position.




                                Figure 6 – BEFORE




                                 Figure 7 – AFTER



                          IMPORTANT
  Whilst constructing the query if the tables do not show make
              sure that the Show Tables is highlighted




                                                                                17
St. Michael Foundation                                MS Access ECDL Notes Vers. 1.0



Forms
To construct Forms, it is suggested that you utilize the wizard.


                                                             Select Forms


                                                      Then select the Wizard




The following window opens and asks you which table/query the wizard will use
to construct the form


                                                         Choose the combo box
                                                         to select the source to
                                                         create the form

                                                         Next select the fields
                                                         that will be shown in
                                                         your form. The > takes
                                                         one field at a time
                                                         across, the >> takes
                                                         them all. You can
                                                         amend the fields and
                                                         return them to their
                                                         original position by
                                                         using the < or the <<


The following example is based upon the clients table and all fields are selected,
then select Next




                                                                                   18
St. Michael Foundation                            MS Access ECDL Notes Vers. 1.0


The second stage, ensure that if the examiner asks you to use all the default
settings that you do not change the shown selection




The third stage




The fourth stage – Saving the Form as Clients Form, select Finish to complete
the form.




                                                                             19
St. Michael Foundation                               MS Access ECDL Notes Vers. 1.0


The completed form.




IMPORTANT

Switch between the Form View and the Design View:
   • Form View –
   • Design View -




Adding a label to a form

To add a label to a form you have to select the design view of the form




                                                                                20
St. Michael Foundation                                 MS Access ECDL Notes Vers. 1.0


Drag down the Detail bar to make space for the label




Figure 8 – BEFORE




Figure 9 - AFTER


From the Toolbar select the Aa button and enter a label by dragging a box, enter
the text required into this box.




To change the Font size/colour select the border and change the settings from
the standard toolbar




 IMPORTANT

 If the floating toolbar does not show make sure the
 button is selected on the toolbar




                                                                                  21
St. Michael Foundation                                 MS Access ECDL Notes Vers. 1.0




                                             To delete a form, right click on the
                                             form and select delete from the
                                             drop down menu




Reports
To construct Reports, it is suggested that you utilize the wizard.




                              Select the Table/Query which the report will be
                              based upon



                                      Select which fields will show in the report




                                                                                    22
St. Michael Foundation                                MS Access ECDL Notes Vers. 1.0


The report will be based upon the Clients table showing all the fields




In the following picture the Surname field has been ‘promoted’. The final result
will be that the surnames will be grouped




The names are selected to be sorted in ascending order




                                                                                 23
St. Michael Foundation                              MS Access ECDL Notes Vers. 1.0


The report format is selected in the following picture, remember that is the
examiner asks you to leave all the default values, then do not effect and changes




Select the style, remember that is the examiner asks you to leave all the default
values, then do not effect and changes




Name the report and save it




                                                                               24
St. Michael Foundation                                MS Access ECDL Notes Vers. 1.0


The finished report, note the way the data is sorted alphabetically




 IMPORTANT

 Switch between the Report View and the Design View:
     • Report View –
     • Design View -



To change the page properties of a report the format is File > Page Setup > Page
and change between Portrait and Landscape




                                                                                 25

Contenu connexe

Tendances

MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access TutorialvirtualMaryam
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt1520lakshyagupta
 
Excel PowerPoint
Excel PowerPointExcel PowerPoint
Excel PowerPointnhumar
 
Introduction microsoft excel 2007
Introduction microsoft excel 2007Introduction microsoft excel 2007
Introduction microsoft excel 2007Celia Bandelier
 
A practical tutorial to excel
A practical tutorial to excelA practical tutorial to excel
A practical tutorial to excelMunna India
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tablesJhen Articona
 
Pivot table and Dashboard in microsoft excel
Pivot table  and Dashboard in microsoft excelPivot table  and Dashboard in microsoft excel
Pivot table and Dashboard in microsoft excelFrehiwot Mulugeta
 
MS Word Advanced Training
MS Word Advanced TrainingMS Word Advanced Training
MS Word Advanced Trainingguest99ab68
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Alomgir Hossain
 

Tendances (20)

Excel lesson01
Excel lesson01Excel lesson01
Excel lesson01
 
Ms access
Ms accessMs access
Ms access
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Ms access
Ms accessMs access
Ms access
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
 
Excel PowerPoint
Excel PowerPointExcel PowerPoint
Excel PowerPoint
 
Introduction microsoft excel 2007
Introduction microsoft excel 2007Introduction microsoft excel 2007
Introduction microsoft excel 2007
 
MS Excel
MS ExcelMS Excel
MS Excel
 
MS ACCESS (REPORT)
MS ACCESS (REPORT)MS ACCESS (REPORT)
MS ACCESS (REPORT)
 
001.general
001.general001.general
001.general
 
A practical tutorial to excel
A practical tutorial to excelA practical tutorial to excel
A practical tutorial to excel
 
Intro to Microsoft Excel 2007
Intro to Microsoft Excel 2007Intro to Microsoft Excel 2007
Intro to Microsoft Excel 2007
 
MS EXCEL
MS EXCELMS EXCEL
MS EXCEL
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tables
 
Pivot table and Dashboard in microsoft excel
Pivot table  and Dashboard in microsoft excelPivot table  and Dashboard in microsoft excel
Pivot table and Dashboard in microsoft excel
 
MS Word Advanced Training
MS Word Advanced TrainingMS Word Advanced Training
MS Word Advanced Training
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table
 

En vedette

Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access NotesPyi Soe
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 
Data communication
Data communicationData communication
Data communicationAnuja Lad
 
First class teaching techniques
First class teaching techniquesFirst class teaching techniques
First class teaching techniquesThiti Theerathean
 
Prof Klaus: Terminology Management
Prof Klaus: Terminology ManagementProf Klaus: Terminology Management
Prof Klaus: Terminology Managementakashjd
 
Computer system administrator
Computer system administratorComputer system administrator
Computer system administratorTheZayne92
 
Data Types And Field Properties
Data  Types And  Field  PropertiesData  Types And  Field  Properties
Data Types And Field Propertieswmassie
 
Duties of a system administrator
Duties of a system administratorDuties of a system administrator
Duties of a system administratorKhang-Ling Loh
 
Database Administration
Database AdministrationDatabase Administration
Database AdministrationBilal Arshad
 
Access presentation
Access presentationAccess presentation
Access presentationDUSPviz
 
Applications: Word-Processing, Spreadsheet & Database
Applications: Word-Processing, Spreadsheet & DatabaseApplications: Word-Processing, Spreadsheet & Database
Applications: Word-Processing, Spreadsheet & DatabaseAlaa Sadik
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
How to Make Ugly Slides Beautiful
How to Make Ugly Slides BeautifulHow to Make Ugly Slides Beautiful
How to Make Ugly Slides BeautifulSketchBubble
 
Malaysia kekal berdaulat rumusan p1
Malaysia kekal berdaulat rumusan p1Malaysia kekal berdaulat rumusan p1
Malaysia kekal berdaulat rumusan p1Adlin Salsain
 

En vedette (20)

Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Data communication
Data communicationData communication
Data communication
 
First class teaching techniques
First class teaching techniquesFirst class teaching techniques
First class teaching techniques
 
Prof Klaus: Terminology Management
Prof Klaus: Terminology ManagementProf Klaus: Terminology Management
Prof Klaus: Terminology Management
 
Internet explorer
Internet explorerInternet explorer
Internet explorer
 
Computer system administrator
Computer system administratorComputer system administrator
Computer system administrator
 
SC161-Lecture4-1
SC161-Lecture4-1SC161-Lecture4-1
SC161-Lecture4-1
 
Data Types And Field Properties
Data  Types And  Field  PropertiesData  Types And  Field  Properties
Data Types And Field Properties
 
Duties of a system administrator
Duties of a system administratorDuties of a system administrator
Duties of a system administrator
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Access presentation
Access presentationAccess presentation
Access presentation
 
Applications: Word-Processing, Spreadsheet & Database
Applications: Word-Processing, Spreadsheet & DatabaseApplications: Word-Processing, Spreadsheet & Database
Applications: Word-Processing, Spreadsheet & Database
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
 
How to Make Ugly Slides Beautiful
How to Make Ugly Slides BeautifulHow to Make Ugly Slides Beautiful
How to Make Ugly Slides Beautiful
 
บทที่ ๒ ใหม่
บทที่ ๒ ใหม่บทที่ ๒ ใหม่
บทที่ ๒ ใหม่
 
Malaysia kekal berdaulat rumusan p1
Malaysia kekal berdaulat rumusan p1Malaysia kekal berdaulat rumusan p1
Malaysia kekal berdaulat rumusan p1
 
Migración y Biopolítica.
Migración y Biopolítica. Migración y Biopolítica.
Migración y Biopolítica.
 

Similaire à Ms access notes

Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Creating and editing a database
Creating and editing a databaseCreating and editing a database
Creating and editing a databasecrystalpullen
 
Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxEsubalew21
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxEsubalew21
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Accessmcclellm
 
Understanding about relational database m-square systems inc
Understanding about relational database m-square systems incUnderstanding about relational database m-square systems inc
Understanding about relational database m-square systems incMuthu Natarajan
 
OPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATIONOPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATIONYoomiLaataBekele
 
access1.ppt
access1.pptaccess1.ppt
access1.pptmayada34
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdfbkbk37
 
Adding A New Field
Adding A New FieldAdding A New Field
Adding A New FieldEMAINT
 
Access2003
Access2003Access2003
Access2003mrh1222
 
Access2003
Access2003Access2003
Access2003tanik363
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorialGhazali_MFP
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01Lets try
 
Measure the right stuff with crystal reports bb con 2011
Measure the right stuff with crystal reports   bb con 2011Measure the right stuff with crystal reports   bb con 2011
Measure the right stuff with crystal reports bb con 2011Joe Meehan
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxdewhirstichabod
 

Similaire à Ms access notes (20)

Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Creating and editing a database
Creating and editing a databaseCreating and editing a database
Creating and editing a database
 
Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptx
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
Relational models
Relational modelsRelational models
Relational models
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
 
Understanding about relational database m-square systems inc
Understanding about relational database m-square systems incUnderstanding about relational database m-square systems inc
Understanding about relational database m-square systems inc
 
OPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATIONOPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATION
 
Fg d
Fg dFg d
Fg d
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdf
 
Database use
Database useDatabase use
Database use
 
Adding A New Field
Adding A New FieldAdding A New Field
Adding A New Field
 
Access2003
Access2003Access2003
Access2003
 
Access2003
Access2003Access2003
Access2003
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorial
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
Measure the right stuff with crystal reports bb con 2011
Measure the right stuff with crystal reports   bb con 2011Measure the right stuff with crystal reports   bb con 2011
Measure the right stuff with crystal reports bb con 2011
 
Excel training
Excel  training Excel  training
Excel training
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docx
 

Dernier

Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 

Dernier (20)

Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 

Ms access notes

  • 1. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 MS ACCESS ECDL NOTES MODULE 5 Tables ...................................................................................................................3 Field Properties.....................................................................................................4 Primary Key ..........................................................................................................5 Saving your table ..................................................................................................6 Relationships ........................................................................................................6 Adding data into the tables .................................................................................10 Changing between Table View and Design view ................................................11 Indexing ..............................................................................................................11 Duplicate Indexed Fields.....................................................................................12 Queries ...............................................................................................................13 Simple Queries................................................................................................15 Compound Queries .........................................................................................16 Delete and move columns in queries ..............................................................17 Forms..................................................................................................................18 Adding a label to a form ..................................................................................20 Reports ...............................................................................................................22 1
  • 2. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 MS Access Microsoft Access is a database application, it is moreover known as a relational database application. This means that fields in a record are related and changes made to one field would affect the others. This will be explained in more detail within these notes. The ECDL access module requires that the user is familiar with: • Tables • Queries • Forms • Reports The first thing that you need to do to begin a new database is to open MS Access and create a database using the following steps 1. Choose blank database 2. Select where you are going to save the database and name the new database then click the create button to set it up 2
  • 3. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Note: that once you have setup the database it is not recommended that you change the location of the folder. The next step is to construct the tables that will hold your data. Tables The construction of a table consists of • Fields – The lowest level of data e.g. Name or Surname • Records – A collection of fields e.g. Name and Surname and Age • Table – A collection of records Example: Name Surname Age Paul Green 12 Mary White 14 Field Name Jane Red 11 Mark Blue 12 Table Edith Black 13 Jake Purple 15 Record Note: For the ECDL it is recommended that you do not use Wizards to construct your tables and Queries. Use wizards to construct your forms and wizards. To construct your table: 1. Make sure you have selected the Table selection from the objects menu 2. Select Create table in Design View 3
  • 4. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The Table view will be displayed on your screen. Enter the details, see example below: Enter the following details into a Table: Primary Key? Field Name Data Type Properties Primary Key StudentID Autonumber Name Text 20 Surname Text 30 Age Number Byte This is what the above data will look like in a table. To arrange the field properties you select the field you would like to edit, and then change the properties in the field properties pane located at the bottom of your interface. Field Properties For example if you require that the Name field would allow the operator to enter 30 characters then change it from the Field Properties. In this field you can also change the numric type e.g. a numberic type can be a Byte, Integer or Long integer. 4
  • 5. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 In Format you can set the decimal points Primary Key To set the primary key to a field either: • Right click on the field name and from the menu that appears select Primary Key • Select the Field name and from the menu bar select the primary key icon Primary Key Definition: The Primary Key ensures that no two records in a database contain the same value for that field. It is the field that uniquely identifies the record. E.g. In Malta your ID Card number is unique so it is ideal to be used as a primary key for a database; another example is a Passport number. 5
  • 6. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Saving your table You can save your table in one of two ways: • Close the table view, a window will pop up asking if you want to save your table, save with your required name. • Click on File > Save as > save with your required name. Note: It is a good idea when naming your tables/Queries/Forms and Reports that you mention the type of style being saved, example Students Table, or Students Form. This will come in useful when you need to make a report and a table and a form have the same name Your finished table now shows in the Table view Relationships Relationships are formed between two or more tables. The idea of relationships is to join tables that are inter-related, for example a DVD shop would have at 6
  • 7. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 least two tables, on that shows the DVD titles stock and the other that shows the clients that frequent the establishment. See example below The two tables that will be related to show the DVD’s that a client borrows Before we continue you have to know that there are three types of relationships: • Many to Many Relationships (These are hardly ever used) • One to One Relationships (Not used in the ECDL) • One to Many Relationships Since the ECDL syllabus only requires the One to May relationship this will now be explained. In a DVD shop one client is allowed to borrow many DVD’s, this may be depicted as follows: 1 client ∞ DVD We therefore need to relate the tables to show this scenario. The two tables are shown below Note: MEMBER ID is shown in both tables 7
  • 8. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 We therefore will relate the two tables based upon the MEMBER ID Field, as shown in the following diagram To open relationships select the relationship icon from your toolbar You now need to add the tables that will show in your relationship to do this either click on the table you want to include and click ADD or else double click the tables you would like to include. Figure 1 shows the added tables 8
  • 9. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 To create the relationship drag the Membership ID (in this case) from one table and drop it onto the same field in the other table, the following window will appear The Membership ID fields from both tables Select this field to setup the relationship The relationship type Once you have completed the above this is what your screen will look like, note the relationship symbols, there is now a one to many relationship between the Clients and the DVD tables. One client can now borrow many DVD’s. Close the relationship window and save changes. Your relationship is now complete. 9
  • 10. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Adding data into the tables To enter data into the tables you can double click (or right click on table and select open). In the open table enter your data, see example below Notice the + signs, these show that the table is linked to another (Because of relationship) Figure 2 Shows the same table with the '+' expanded Figure 3 Shows data entered into the expanded fields Note: Data entered into the expanded fields will go directly into its relative table 10
  • 11. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Figure 4 Note the data entered in the previous figure goes directly into the DVD table. Note that the last column shows the related field in the Clients table Changing between Table View and Design view To change between the Table view and the Design view select the relative icon from the menu bar • - Design View • - Table View Select one to go the other, the image will switch over. Indexing Indexing is an auto sort of the data entered into the fields so that the database search engine would be able to retrieve the data faster in a search. To activate the indexing select the field you would like to index and then the Index icon from your menu bar. The following window will open. 11
  • 12. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Figure 5 shows the indexing interface window To set a field to indexed select the field name in a blank ‘box’ in the field name column, a drop down list will appear and select the field you require to be indexed. Duplicate Indexed Fields Fields that allow the user to insert duplicate fields are set in the Field properties window of that field. 12
  • 13. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 These may be set to one of three options: • NO – The field is not indexed • YES (Duplicates OK) – The field is indexed and duplicates are allowed (e.g. more that one person with the same surname) • YES (No Duplicates) – The field is indexed but duplicates are not allowed (e.g. there cannot be two people with the same surname) Queries There are two types of queries: 1. Simple Query – asks one ‘question’ to your database 2. Compound Query – asks two or more ‘questions’ to your database Remember: For queries it is NOT suggested that you use the wizard. Select the Query Tab and then select to create a Query in Design view From the window that opens select the tables and add them to the query, you can do this either by selecting each table and the clicking Add or else by double clicking the required tables 13
  • 14. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The tables are now added to the query, see the image below To add fields to the query, you can: • Double click on each field to be added • Select Field>Press Combo box arrow > Select required field • Drag the required field into the first field/row. 14
  • 15. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Simple Queries To perform a simple query enter the details you are looking for in the criteria cell under the required field. In the following example we are looking for a client with the surname Smith. Once you have entered the text press the red exclamation mark on your toolbar. (!) When you have entered the data to lookup press the red exclamation mark Enter the data to be looked up here This is the result of the above query, there were no clients with the surname Smith The above query was amended to search for clients with the surname White, this is the result 15
  • 16. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 To save your query either: • Close the query and the application will prompt you to save your work • File > Save As > Name your query Compound Queries As mentioned earlier a compound query looks up two or more criteria. See the following example which looks up the DVD entitled Snow White and which is available. Once you have entered the text press the red exclamation mark on your toolbar. (!) This is the result of the above query. To save your query either: • Close the query and the application will prompt you to save your work • File > Save As > Name your query 16
  • 17. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Delete and move columns in queries To delete a column in a query select the grey area just above the field name, this will highlight the entire column, now press the Del (delete) key on you keyboard. The column is deleted. To move the columns select the same grey area as above, now left click the same area and keep the mouse button depressed whilst dragging the column to the required position, let go to drop in the required position. Figure 6 – BEFORE Figure 7 – AFTER IMPORTANT Whilst constructing the query if the tables do not show make sure that the Show Tables is highlighted 17
  • 18. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Forms To construct Forms, it is suggested that you utilize the wizard. Select Forms Then select the Wizard The following window opens and asks you which table/query the wizard will use to construct the form Choose the combo box to select the source to create the form Next select the fields that will be shown in your form. The > takes one field at a time across, the >> takes them all. You can amend the fields and return them to their original position by using the < or the << The following example is based upon the clients table and all fields are selected, then select Next 18
  • 19. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The second stage, ensure that if the examiner asks you to use all the default settings that you do not change the shown selection The third stage The fourth stage – Saving the Form as Clients Form, select Finish to complete the form. 19
  • 20. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The completed form. IMPORTANT Switch between the Form View and the Design View: • Form View – • Design View - Adding a label to a form To add a label to a form you have to select the design view of the form 20
  • 21. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 Drag down the Detail bar to make space for the label Figure 8 – BEFORE Figure 9 - AFTER From the Toolbar select the Aa button and enter a label by dragging a box, enter the text required into this box. To change the Font size/colour select the border and change the settings from the standard toolbar IMPORTANT If the floating toolbar does not show make sure the button is selected on the toolbar 21
  • 22. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 To delete a form, right click on the form and select delete from the drop down menu Reports To construct Reports, it is suggested that you utilize the wizard. Select the Table/Query which the report will be based upon Select which fields will show in the report 22
  • 23. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The report will be based upon the Clients table showing all the fields In the following picture the Surname field has been ‘promoted’. The final result will be that the surnames will be grouped The names are selected to be sorted in ascending order 23
  • 24. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The report format is selected in the following picture, remember that is the examiner asks you to leave all the default values, then do not effect and changes Select the style, remember that is the examiner asks you to leave all the default values, then do not effect and changes Name the report and save it 24
  • 25. St. Michael Foundation MS Access ECDL Notes Vers. 1.0 The finished report, note the way the data is sorted alphabetically IMPORTANT Switch between the Report View and the Design View: • Report View – • Design View - To change the page properties of a report the format is File > Page Setup > Page and change between Portrait and Landscape 25