Beruflich Dokumente
Kultur Dokumente
- Is known as a desktop database system because its functions are intended to be run from a
single computer.
- Uses database – a collection of data and objects related to a particular subject, which is
organized and categorized by tables
- It is a Relational Database Management System (RDBMS), because it stores information in
multiple related tables and can be treated as a single storage area and pull information
electronically from different tables in whatever order meets your needs; designed primarily
for home or small business usage
- Previously known as Microsoft Access, is a database management system from Microsoft
that combines the relational Microsoft Jet Database Engine with a graphical user interface
and software-development tools.
MS ACCESS Features
- Users can create tables, queries, forms and reports, and connect them together with
Macros
Macros in Access can be thought of as a simplified programming language which you
can use to add functionality to your database. It contains actions that perform tasks,
such as opening a report, running a query, or closing the database. Most database
operations that you do manually can be automated by using macros.
- Access also has report creation features that can work with any data sources that Access
can “access”.
- Other features include: the import and export of data to many formats including Excel,
Outlook, ASCII, dBase, Paradox, FoxPro, SQL Server, Oracle, ODBC, etc.
- It also has the ability to link to data in its existing location and use it for viewing, querying,
editing, and reporting.
- It can perform heterogeneous joins between data sets stored across different platforms. It
is often used by people downloading data from enterprise level databases for manipulation,
analysis, and reporting locally.
- Microsoft Access offers parameterized queries. These queries and Access tables can be
referenced from other programs like VB6 and .NET through DAO or ADO. From MS Access,
VBA can reference parameterized stored procedures via ADO.
- Microsoft Access is a file server-based database. Unlike client-server relational database
management systems, Microsoft Access does not implement database triggers, stored
procedures, or transaction logging.
MS Access vs MS Excel
MS Excel
Spreadsheet
Flat database
all information has a one-to-one relationship
MS Access
like multiple spreadsheets that are connected to one another
one-to-many relationships
many-to-many relationships
Examples
Printed Phone Directory (White Pages)
Flat Database: one-to-one relationships
Library Catalog
Relational Database: Many-to-many relationships
** Library patrons check out many books
** Books are checked out by many patrons
University Class Schedules
Students have many professors.
Professors have many students
Classes can be held in many classrooms
Working in Access 2007
When you create or open a database, it opens in a database window. The new Access database
window interface is designed to more closely reflect the way people generally work with a
database or database object.
Format- the layout displayed for the field. (EX: general date, short time, etc)
Input Mask- a selection of patterns for data entered into the field. (EX: SSN, zip
code, etc)
Caption- the label used on a form to identify the field
Default Value- a value that is automatically entered as a default
Validation Rule- expression that can precisely define the information that will
be accepted in one or several fields in a record
Validation Text- the text message that appears if the validation rule fails
Indexed- determines if duplicates are allowed in a field or not
Required- is this a required field?
Lookup Tab:
Display Control- a drop-down menu from which to decide the control type for a
form. (EX: textbox, drop-down list, list box)
Look-up Field – is a field that displays either a field that looks up data from existing tables or
queries or a list that stores a fixed set of values
Relationships – association between common fields in two tables to link information in one
table to information in another table
One-to-one relationship – in which each record in one table can have one and only
one related record in the other table
One-to-many relationship – an excellent way to display this is through the use of a
form containing a subform; the main, or primary, form displays one record from the
“one” side of the one-to-many relationship, and the subform lists all the pertinent
records from the “many” side of the relationship
Many-to-many relationship – which are really two one-to-many relationships tied
together through a third table
Relationship window –displays the tables and relationships in a database; it is possible to
view, create, and modify relationships between tables and queries within this window.
Creating Relationships
1. To create a relationship, click TOOLS then RELATIONSHIPSfrom the toolbar, to activate
the relationships window.
2. To view the tables to which you wish to add relationships, clickRELATIONSHIPS then
SHOW TABLES from the toolbar.
3. At the pop-up window, select the tables you desire to addrelationships to and then click
the ADD button.
4. Highlight the field you wish to relate to another table byclicking it once.
5. Next, drag and drop it to the corresponding field name in the appropriate table.
6. A pop-up window will appear titled “Edit Relationship.” Thiswindow will clarify what
type of relationship you are creatingin the lower right corner of the window.
7. Select ENFORCE REFERENTIAL INTEGRITY if you wantto ensure that the relationships you
create between tables isvalid. The options CASCADE UPDATE and CASCADEDELETE are
then available. These options ensure that if achange is made to data in a table that is
linked, the changes arereflected in the corresponding linked table.
8. Click CREATE to create the relationship.
Reports
Report –Summary of data for a professional look and enable sharing and printing
Report view – where you can scroll through the information in the report without the page
breaks inserted when it is printed
Print Preview – in which you see your repot exactly as it will look when printed
Layout view – which displays the data in report but enables you to edit the layout
Design view – in which you can manipulate the design of a report without the page breaks
inserted when it is printed
Queries
Queries – are the means of manipulating the data to display in a form or a report. Queries
can sort, calculate, group, filter, join tables, update data, delete data, etc. Their power is
immense. The Microsoft Access database query language is SQL (Structured Query
Language). The need to know SQL is not required in the early stages of learning Access.
Microsoft Access writes the SQL for you, after you tell it what you want, in the Design view
of the queries window.
Select query – retrieves data from one or more tables and displays the results in a
datasheet; can also be used to group records and calculate sums, counts, averages,
and other types of totals
Duplicate query –locates records that have the same information in one or
more fields that you specify
Unmatched query – locates records in one table that don’t have related records
in another table
Parameter query – prompts you for information to be used in the query – for
example, a range of dates
Crosstab query – calculates and restructures data for easier analysis
Action query – updates multiple records in one operation; performs an action on the
results of the selection process
Delete queries – delete records from one or more tables
Update queries – make changes to records in one or more tables
Append queries – add records from one or more tables to the end of one or
more other tables
Make-table queries – create a new table from all or part of the data in one or
more tables
Creating Queries
1. From the Design tab, in the Results group, click Run (see Figure 7).