Introduction to MS Access Steve Shapiro Computer Services Manager Office of Research Services and Administration University of Oregon Region VI/VII NCURA.

Slides:



Advertisements
Similar presentations
A database is a collection of data that is stored in a computer system. Databases allow their users to enter, access, and analyze their data quickly and.
Advertisements

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Lecture Microsoft Access and Relational Database Basics.
The Hierarchy of Data Bit (a binary digit): a circuit that is either on or off Byte: 8 bits Character: each byte represents a character; the basic building.
1 Introduction to Database Management System Pertemuan 01 Matakuliah: F0712 / Lab MS Access Tahun: 2007.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 1 Introduction to Database Management.
DATABASE APPLICATION DEVELOPMENT SAK 3408 Introduction (week 1)
The Repetition Structure Lecture 11 08/07/06 Dan Rao.
Portal Technologies An overview of portal products and other software.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
What is Where? u Getting Started With Geographic Information Systems u Chapter 5.
Microsoft Access Ervin Ha.
What is a database? Databases are designed to offer an organized mechanism for storing, managing and retrieving information.
MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro.
Introduction to Database using Microsoft Access 2013 Part 1 November 4, 2014.
Introduction to Database
Server System. Introduction A server system is a computer, or series of computers, that link other computers or electronic devices together. They often.
Databases Illuminated
GRIN-Global Project the global plant genebank information management system.
Enterprise Manager
Database Lecture # 1 By Ubaid Ullah.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Multiple Cases Access Utilities1 Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
CIS 103 — Applied Computer Technology Last Edited: September 17, 2010 by C.Herbert Using Database Management Systems.
Databases. Database A database is an organized collection of related data.
Part 1. Persistent Data Web applications remember your setting by means of a database linked to the site.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Database A database is a collection of data organized to meet users’ needs. In this section: Database Structure Database Tools Industrial Databases Concepts.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
Copyright 2008 Judith A Copeland - Accessing The Database By Judi Copeland.
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
FEN Introduction to the database field:  Applications, concepts and terminology Seminar: Introduction to relational databases.
Module 1: Database System
1 Why Learn About Database Systems? Database systems process and organize large amounts of data Examples –Marketing manager can access customer data –Corporate.
Introduction to Database AIT632 Chapter 1 Sungchul Hong.
ABSTRACT The JDBC (Java Database Connectivity) API is the industry standard for database- independent connectivity between the Java programming language.
Multiple Cases Access Utilities1 Built-in Access Utilities for Developers, Users & Administrators P.O. Box 6142 Laguna Niguel, CA
By Stephanie Wood And Nedziba Bubregovic.  A very large collection of data  A database management system is a software package designed to store and.
UNIVERSITAS MUHAMMADIYAH SURAKARTA DATABASE MANAGEMENT SYSTEM - INTRODUCTION.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
Chapter-1- Basic Concepts Reference: Prof. Mona Mursi Lecture notes
Microsoft Access 2003 Tutorial By: Juan Y7. What is Microsoft Office Access? Microsoft Access, also known as Microsoft Office Access, is a database management.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Using Structured Query Language (SQL) NCCS Applications –MS Access queries (“show SQL”) –SAS (PROC SQL) –MySQL (the new dataserver) –Visual Foxpro Other.
Fundamental of Database Systems
آشنایی با نرم افزار Microsoft Access
Introduction to Database Processing
Database System Concepts and Architecture
Created by Kamila zhakupova
What is Database? A database is a collection of data with defined structure and purpose. Data can easily be accessed, managed, and updated. Data can be.
Database.
Do it now – PAGE 11 You will find your do it now task in your workbook – look for the start button! Wednesday, 21 November 2018.
সৈয়দ মাহবুব হাসান আমিরী ঢাকা রেসিডেনসিয়াল মডেল কলেজ
5 × 7 = × 7 = 70 9 × 7 = CONNECTIONS IN 7 × TABLE
5 × 8 = 40 4 × 8 = 32 9 × 8 = CONNECTIONS IN 8 × TABLE
4 × 6 = 24 8 × 6 = 48 7 × 6 = CONNECTIONS IN 6 × TABLE
5 × 6 = 30 2 × 6 = 12 7 × 6 = CONNECTIONS IN 6 × TABLE
Chapter 1 Introduction to Database Processing
10 × 8 = 80 5 × 8 = 40 6 × 8 = CONNECTIONS IN 8 × TABLE MULTIPLICATION.
3 × 12 = 36 6 × 12 = 72 7 × 12 = CONNECTIONS IN 12 × TABLE
5 × 12 = × 12 = × 12 = CONNECTIONS IN 12 × TABLE MULTIPLICATION.
5 × 9 = 45 6 × 9 = 54 7 × 9 = CONNECTIONS IN 9 × TABLE
3 × 7 = 21 6 × 7 = 42 7 × 7 = CONNECTIONS IN 7 × TABLE
Presentation transcript:

Introduction to MS Access Steve Shapiro Computer Services Manager Office of Research Services and Administration University of Oregon Region VI/VII NCURA Conference April,

What is a Database? a comprehensive collection of related data organized for convenient access, generally in a computer dictionary.reference.com/browse/database This definition was found via a search of Googles database Databases are all around us, and all of us interact with them on a daily basis. Who said you cant make your own? 2

Where does MS Access fit? lists history for about 50 database programs Popular Databases: Oracle, Microsoft SQL Server, IBM DB2, FileMaker, Ingres, MySQL, Corel Paradox, Dbase III, R:Base MS Access is a low-end to mid-tier database application – It runs independently on workstations for single users – It runs on servers that can be accessed by multiple users at the same time on a network – It provides a user friendlier front end to more powerful database applications such as Oracle and MS SQL Server 3

What is MS Access? MS Access is a relational database, meaning that data is stored in multiple tables that are related to each other. – PIs in one table, their awards in another table. The database maintains a connection between the tables using something called a key – a number that is the same in both tables. 4

History Access is one of the few products originally developed by Microsoft Development began in the mid 1980s Combined with other databases that Microsoft licensed such as R:Base and FoxPro Released in November 1992 as a single user application for very small (<10mb) files Became dominant database for windows when competitors failed to transition to Windows successfully. Now a very stable and robust application, scaling from 1 to many users and up to 2g of data in each file 5

Todays Session Will cover < 1% of MS Access capability We wont talk about – Security – Advanced anything Forms, queries, front/back ends, modules, macros – Interfacing with other databases – Advanced Data Validation – Questions on these and other topics are welcome! 6

Relational Database? 7

Keys relate information in different tables 8

5 Major Components of Access Access Database Objects Tables Queries Forms Macros Modules 9

Tables Tables hold the information, called data 10

Tables - Data Types Text Use for text or combinations of text and numbers, such as addresses, or for numbers that do not require calculations, such as phone numbers or postal codes (255 characters) Memo Use for lengthy text and numbers, such as notes. Stores up to 63,999 characters Number Use for data to be included in mathematical calculations, except money Date/Time Use for dates and times Currency Use for currency values and to prevent rounding off during calculations. AutoNumber Use for unique sequential that are automatically inserted with a new record Yes/No Use for data that can be only one of two possible values, such as Yes/No, True/False, On/Off. OLE Object Use for OLE objects (such as Microsoft Word documents, Microsoft Excel spreadsheets, pictures, sounds, Hyperlink Use for hyperlinks (hyperlink: Colored and underlined text or a graphic that you click to go to a file, a location in a file, a Web page on the World Wide Web, or a Web page on an intranet. Stores up to 2048 characters. Lookup Wizard Use to create a field that allows you to choose a value from another table or from a list of values using a combo box 11

Table Encounter The prospect of creating multiple tables almost always intimidates beginning database users. Most often, beginners will want to create one huge table that contains all of the information they need, similar to an Excel spreadsheet. When thinking about which fields to add to a table, a good first guess is: What piece of information will only occur once? – Such as A person will probably only have one first name, though it may change – First_Name is a good candidate for the PI table A table needs at least on field that never duplicates in the same table – Two or more people can have the same first, last and middle names A person may have more than one award (per name) – The award title is not a good candidate for the PI table, since we dont know how many awards a person may have 12

Queries Queries select and modify specific data Queries convert data to information They are used to populate forms and reports MS Access uses a visual query wizard to help novice (and advanced!) users construct queries 13

Simple Queries From a Single Table Select Award_Title from Awards where (Award_Title Like Exploring*) and (Closed = False) Order By Award_Date; 14

Simple Queries from Multiple Tables Set up relationships (Access may make you do this and if it does, will help you with a wizard) 15

Simple Queries from Multiple Tables SELECT PIs.[First Name], Awards.Award_Title, Awards.Award_Date, Awards.Closed FROM PIs INNER JOIN Awards ON PIs.ID = Awards.PI_ID; 16

Action Queries Queries can update, add or delete records from a table DELETE * FROM Pis WHERE (PIs.[First Name])="No Research"; 17

Forms Forms let you enter and display specific data in a customized format. 18

Basic Types of Forms Single Record Datasheet 19

Form Controls Bound Controls – Are directly attached to the data and will update as you leave the field on the form UnBound Controls – Have to be manipulated with program code Calculated Controls – Do not exist in the data tables. They are derived based on other controls or fields in the database 20

Types of Controls Text Box: Displays and allows user to enter data Label: Displays static text Button: Does something by runnning macros or VBA Code Combo Box: A drop down list of values List Box: A list of values SubForm: a form of related data within a form Shapes: boxes, lines, images Check Boxes: Yes/No or True/False Option Groups: choose one option from a group Toggle Buttons: enabled or not enabled Tabs: for forms with lots of data, multiple tabbed pages Charts: Display data in graphical format More… 21

Properties What can a Control look like and how can it act? 22

Events – Making Access Do Something 23

Visual Basic Code in a Form Behind a button Private Sub btn_Close_Click() DoCmd.Close acForm, frm_PI_Awards End Sub 24

Data Validation and formatting In the Table 25

Data Validation On the Form 26

Macros Wizard driven tool to automate repetitive tasks Can be very simple or very complex 27

Reports Reports display and print formatted data – Text Form Letters, columnar reports, grouped reports – Graphics – Sub Reports – Export to other formats, such as spreadsheet, word processing – Wizard driven or drive yourself 28

Designing a Report 29

Modules Modules contain Visual Basic for Applications program code as subroutines or functions Visible from anywhere in the Application: – tables, queries, forms, macros and reports Subroutines typically do something Functions do something and return a result 30

VBA Code Wizard and context assistants help write code Almost, but not quite understandable Public Function Activate_Detail_Form(My_Form As Form) Dim db As Database Dim rec As Recordset Set db = CurrentDb() Set rec = db.OpenRecordset("tbl_sys_Color_Scheme", dbOpenSnapshot) rec.MoveFirst My_Form.FormHeader.BackColor = rec!Detail_Header_BackGround_Color My_Form.Label1.ForeColor = rec!Detail_Header_Font_Color rec.Close Set rec = Nothing Set db = Nothing My_Form.Repaint End Function 31

Getting Started with Access Database development is quite unlike most other programs used to create information in a computer, such as word processing or spreadsheet. Database development requires prior knowledge A beginning user opening Access for the first time likely has no idea where to start. Unlike Word or Excel, you cant just start typing 32

Create Ribbon Starting point for all new objects in the database 33

Conventions Application developers like to label objects in their applications in such a manner that when they go back to look at it several years later, they can figure out what theyve done. We use prefixes and suffixes when we name things: – Tables: tbl_Awards – Forms: frm_Awards – Buttons on forms: btn_Form_Close – Reports: rpt_Reports – Text fields within a table: PI_Name_txt – Integer Fields within a table: Award_Number_txt Spaces in object names are allowed, but dangerous. Use underscores _ or enclose object names in brackets [tbl Awards] 34

Educational Materials Office.microsoft.com – Templates Databases My favorite Book: – Microsoft Access 2010 Bible By Michael Groh Search Engine: [Access 2010 and your question] 35

36