Databases with Microsoft Access

Total Page:16

File Type:pdf, Size:1020Kb

Databases with Microsoft Access DatabasesDatabases withwith MicrosoftMicrosoft AccessAccess UsingUsing AccessAccess toto createcreate DatabasesDatabases JanJan--FebFeb 20032003 WhatWhat isis aa Database?Database? •• AnAn OrganizedOrganized collectioncollection ofof informationinformation aboutabout aa subject.subject. •• Examples:Examples: –– AddressAddress BookBook –– TelephoneTelephone BookBook –– FilingFiling CabinetCabinet fullfull ofof documentsdocuments –– PrePre--existingexisting formsforms (hard(hard copy)copy) –– EmployeeEmployee informationinformation cardscards WhatWhat isis Access?Access? •• AA databasedatabase managementmanagement systemsystem allowingallowing usersusers toto input,input, edit,edit, andand verifyverify data.data. •• ItIt isis aa partpart ofof thethe OfficeOffice 20002000 suitesuite •• IconIcon isis aa purplepurple keykey WhatWhat makesmakes upup aa Database?Database? •• RecordsRecords oror RecordRecord SetSet •• AA setset ofof detailsdetails aboutabout aa specificspecific item.item. •• ExampleExample –– NameName –– AddressAddress –– PhonePhone NumberNumber WhatWhat makesmakes upup aa Record?Record? •• FieldsFields •• ProvideProvide thethe categoriescategories forfor thethe detailsdetails describingdescribing eacheach record.record. •• FieldsFields areare defineddefined byby datadata typestypes •• TheThe specificspecific fieldfield datadata withinwithin aa recordrecord isis thethe fieldfield contentscontents InIn aa NutshellNutshell •• DatabaseDatabase == collectioncollection ofof informationinformation •• DatabaseDatabase isis mademade upup ofof recordsrecords •• RecordsRecords areare mademade upup ofof fieldsfields •• FieldsFields areare defineddefined withwith datadata typestypes thatthat becomebecome fieldfield contents.contents. TheThe DatabaseDatabase WindowWindow •• TableTable •• FormForm •• QueryQuery •• ReportReport •• MacroMacro (not(not coveredcovered inin thisthis class)class) •• ModuleModule (not(not coveredcovered inin thisthis class)class) •• PagePage (if(if timetime andand pertinent)pertinent) TablesTables •• AllAll AccessAccess databasedatabase informationinformation isis storedstored inin tables.tables. •• EachEach rowrow ofof anan AccessAccess TableTable isis aa recordrecord •• EachEach columncolumn ofof anan AccessAccess TableTable isis aa fieldfield •• EachEach columncolumn isis headedheaded byby aa fieldfield namename •• TheThe fieldfield contentscontents isis thethe specificspecific fieldfield datadata withinwithin aa recordrecord FormForm •• AA windowwindow forfor viewingviewing thethe datadata inin oneone oror moremore tables.tables. •• MakesMakes itit easyeasy toto view,view, input,input, andand editedit datadata onon aa singlesingle page.page. •• AnotherAnother wayway toto havehave usersusers inputinput data.data. •• TheThe otherother wayway isis thethe datasheetdatasheet view.view. QueryQuery •• AA wayway toto askask questionsquestions ofof thethe datadata •• AllowsAllows youyou toto seesee oror workwork withwith aa portionportion ofof aa tabletable byby limitinglimiting thethe numbernumber ofof fieldsfields andand byby selectingselecting specificspecific records.records. •• AA wayway toto filterfilter informationinformation ReportReport •• FormattedFormatted informationinformation fromfrom aa tabletable oror queryquery thatthat youyou cancan sendsend toto aa printer.printer. •• YouYou cancan createcreate labelslabels viavia thethe ReportReport Object.Object. PagePage •• AllowsAllows youyou toto createcreate WebWeb--basedbased formsforms thatthat allowallow usersusers toto inputinput andand readread datadata fromfrom youryour database.database. FieldField DataData TypesTypes •• TextText •• MemoMemo •• NumberNumber •• Date/TimeDate/Time •• CurrencyCurrency •• AutoNumberAutoNumber •• Yes/NoYes/No •• OLEOLE ObjectObject •• HyperlinkHyperlink •• LookupLookup WizardWizard TextText •• TextText oror combinationscombinations ofof texttext andand numbers,numbers, suchsuch asas addresses.addresses. AlsoAlso numbersnumbers thatthat dodo notnot requirerequire calculations,calculations, suchsuch asas phonephone numbers,numbers, partpart numbers,numbers, oror postalpostal codescodes •• SizeSize ofof fieldfield == upup toto 255255 characterscharacters MemoMemo •• LengthyLengthy texttext andand numbers,numbers, suchsuch asas notesnotes oror descriptionsdescriptions •• SizeSize == upup toto 64,00064,000 characterscharacters NumberNumber •• NumericNumeric datadata toto bebe usedused forfor mathematicalmathematical calculations,calculations, exceptexcept calculationscalculations involvinginvolving money.money. •• SizeSize == 1,2,4,1,2,4, oror 88 bytesbytes Date/TimeDate/Time •• DatesDates andand TimeTime •• SizeSize == 8bytes8bytes CurrencyCurrency •• CurrencyCurrency values.values. UseUse thethe CurrencyCurrency datadata typetype toto preventprevent roundingrounding offoff duringduring calculations.calculations. AccurateAccurate toto 1515 digitsdigits toto thethe leftleft ofof thethe decimaldecimal pointpoint andand 44 digitsdigits toto thethe right.right. •• SizeSize == 88 bytesbytes AutoNumberAutoNumber •• UniqueUnique sequentialsequential (incrementing(incrementing byby 1)1) oror randomrandom numbersnumbers automaticallyautomatically insertedinserted whenwhen aa recordrecord isis added.added. •• SizeSize == 44 bytesbytes Yes/NoYes/No •• FieldsFields thatthat willwill containcontain onlyonly oneone ofof twotwo values,values, suchsuch asas Yes/No,Yes/No, True/False,True/False, On/Off.On/Off. •• SizeSize == 11 bitbit OLEOLE ObjectObject •• ObjectsObjects (such(such asas MicrosoftMicrosoft WordWord documents,documents, ExcelExcel spreadsheets,spreadsheets, pictures,pictures, sounds,sounds, oror otherother binarybinary data),data), createdcreated inin otherother programsprograms usingusing thethe OLEOLE protocol,protocol, thatthat cancan bebe linkedlinked toto oror embeddedembedded inin anan AccessAccess tabletable •• SizeSize == upup toto 11 gigabytegigabyte (limited(limited byby diskdisk space)space) HyperlinkHyperlink •• FieldField thatthat willwill storestore hyperlinks.hyperlinks. AA hyperlinkhyperlink cancan bebe aa UNCUNC pathpath oror aa URL.URL. •• SizeSize == upup toto 64,00064,000 characters.characters. LookupLookup WizardWizard •• CreatesCreates aa fieldfield thatthat allowsallows youyou toto choosechoose aa valuevalue fromfrom anotheranother tabletable oror fromfrom aa listlist ofof valuesvalues usingusing aa combocombo box.box. ChoosingChoosing thisthis optionoption inin thethe datadata typetype listlist startsstarts aa wizardwizard toto definedefine thisthis forfor you.you. •• SizeSize == typicallytypically 44 bytesbytes PrimaryPrimary KeyKey • The power of a relational database system such as Microsoft Access comes from its ability to quickly find and bring together information stored in separate tables using queries, forms, and reports. In order to do this, each table should include a field or set of fields that uniquely identifies each record stored in the table. This information is called the primary key of the table. Once you designate a primary key for a table, to ensure uniqueness, Microsoft Access will prevent any duplicate or Null values from being entered in the primary key fields. SoSo shouldshould II setset aa PrimaryPrimary Key?Key? •• II wouldwould justjust toto bebe safe.safe. •• ItIt createscreates anan AutoNumberAutoNumber fieldfield automaticallyautomatically •• YouYou mightmight relaterelate tablestables togethertogether inin thethe future.future. InputInput MaskMask •• ThisThis controlscontrols howhow thethe datadata isis enteredentered intointo aa fieldfield inin aa tabletable oror aa form.form. •• CommonCommon InputInput MasksMasks areare SocialSocial SecuritySecurity Number,Number, Date/Time,Date/Time, PhonePhone number,number, ZipZip code,code, Extension,Extension, Password.Password. •• YouYou cancan createcreate youryour ownown InputInput MaskMask.
Recommended publications
  • Estimating the Complexity of Your Microsoft® Access® Project an Opengate White Paper
    Estimating the Complexity of Your Microsoft® Access® Project An OpenGate White Paper Traditional Access UI Design Microsoft Access is the world's leading desktop database application, with approximately 12 million licensed copies worldwide (according to Microsoft sources). With MS Access readily available on many PCs at work, a large number of prospective users try their hand at creating an Access database appliction to improve their group's productivity and minimize information errors often caused by maintaining data in spreadsheets. While Microsoft made many improvements in Access 2007 to simplify database creation, there is still much to learn when developing an Access database project. This brief paper is intended to help you better gauge how complex your project may be in order to evaluate the trade-offs between using a spreadsheet-based method versus Microsoft Access. Step 1: Determine Your Database's Purpose The first thing to identify is the purpose of your database. There are two fairly buckets you can place a database project into: A) A database that can be used to organize and track information. The simplest type of database, these sorts of projects are primarily to make sure you are efficiently storing information you need. Unlike spreadsheets, a simple database can help you avoid entering the same information multiple times, as well as help avoid errors like duplication of a customer name, or a misspelled product name that causes your reports and charts to show inaccurate data. If this is the type of database you will be creating, give this step a score of 1 B) A database that can be used to organize and track information and automate one or more processes.
    [Show full text]
  • Introduction to Microsoft Access 2010
    Introduction to Microsoft Access 2010 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects: Tables, Queries, Forms and Reports. Tables store your data in your database Queries ask questions about information stored in your tables Forms allow you to view data stored in your tables Reports allow you to print data based on queries/tables that you have created The Navigation Pane The Navigation Pane is a list containing every object in your database. For easier viewing, the objects are organized into groups by type. You can open, rename, and delete objects using the Navigation Pane. To Minimize and Maximize the Navigation Pane: Click the double arrow in the upper-right corner of the Navigation Pane to minimize and maximize. 5-13 1 Sorting the Objects in the Navigation Pane: By default, objects are sorted by type, with the tables in one group, the forms in another, etc. However, you can change how the objects are sorted. Click the drop-down arrow to the right of the All Access Objects and click on a sort option from the list. Creating a Database 1) Start Access 2) Select Blank Database 3) Under File Name type a name for the database 4) To change the location of where to store the database, click the folder icon and select a location 5) Click Create Access opens in a new table in Datasheet View. 2 Understanding Views There are multiple ways to view a database object.
    [Show full text]
  • Accessing MICROSOFT EXCEL and MICROSOFT ACCESS Through the Use of a Simple Libname Statement Kee Lee, Purdue University, West Lafayette, Indiana
    SUGI 27 Applications Development Paper 25-27 Accessing MICROSOFT EXCEL and MICROSOFT ACCESS Through the Use of a Simple Libname Statement Kee Lee, Purdue University, West Lafayette, Indiana assign a libref to the data. (Find out how to define ODBC data source, search for help in Windows.) ABSTRACT Using OLEDB, you can directly code the data source in the program or use the SAS/ACCESS OLE DB services ‘prompt’ to With the help of the SAS Access®, ODBC, and OLEDB, using define it interactively. With OLEDB you don’t need to define the MICROSOFT EXCEL Spreadsheet, MICROSOFT ACCESS data named range for MICROSOFT EXCEL. table, ORACLE data table and many other types of data that are ODBC/OLEDB compliant has never been easier. Among other USING ODBC IN THE LIBNAME STATEMENT methods, you can use the LIBNAME statement to assign a libref to the external data. Once a libref is successfully assigned, you TO ACCESS MICROSOFT EXCEL DATA can use the data as you use the native SAS® data set in the DATA step and many SAS procedures. You can even use SAS/ASSIST® Let’s assume I have a MICROSOFT EXCEL file named ‘demo.xls’ to access different kinds of external data by pointing and clicking. and it has a worksheet ‘sheet1’ with a named range called For people who need to integrate and distribute data to and from ‘sheet1’. Its ODBC data source name (DSN) is ‘odbcxls’. different types of external data, this feature certainly can alleviate a lot of pain. This paper focuses on access MICROSOFT EXCEL Here is how to assign the libref ‘odbcxls’ to the data source and MICROSOFT ACCESS data.
    [Show full text]
  • Multi Approval Process
    The App for O365 MULTI APPROVAL PROCESS User – Administrator guides Version 2.0 https://ltaddins.com +84 946 579 539 [email protected] The App for O365 MENU Overview ...................................................................................................................................................... 4 User guides ................................................................................................................................................. 9 Submit a request .................................................................................................................................... 9 Approve/Reject a request ..................................................................................................................... 9 Cancel the request ............................................................................................................................... 10 View my request ................................................................................................................................... 11 View My tasks ....................................................................................................................................... 11 View all completed requests ............................................................................................................... 11 View all rejected requests ................................................................................................................... 12 View all approved requests ................................................................................................................
    [Show full text]
  • Preview MS Access Tutorial (PDF Version)
    MS Access About the Tutorial Microsoft Access is a Database Management System (DBMS) from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software- development tools. It is a part of the Microsoft Office suite of applications, included in the professional and higher editions. This is an introductory tutorial that covers the basics of MS Access. Audience This tutorial is designed for those people who want to learn how to start working with Microsoft Access. After completing this tutorial, you will have a better understating of MS Access and how you can use it to store and retrieve data. Prerequisites It is a simple and easy-to-understand tutorial. There are no set prerequisites as such, and it should be useful for any beginner who want acquire knowledge on MS Access. However it will definitely help if you are aware of some basic concepts of a database, especially RDBMS concepts. Copyright and Disclaimer Copyright 2018 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial.
    [Show full text]
  • Microsoft Access 2019 Textbook
    MICROSOFT ACCESS 2019 Tutorial and Lab Manual David Murray Microsoft Access 2019 Tutorial and Lab Manual David Murray University at Buffalo Copyright © 2020 by David J. Murray This work is licensed under a Creative Commons Attribution 4.0 International License. It is attributed to David J. Murray and the original work can be found at mgs351.com. To view a copy of this license, visit creativecommons.org/licenses/by/4.0/. Kendall Hunt Publishing Company previously published this book. Microsoft Access 2019 Tutorial and Lab Manual is an independent textbook and is not affiliated with, nor has been authorized, sponsored, or otherwise approved by Microsoft Corporation. Printed in the United States of America First Printing, 2014 ISBN 978-1-942163-02-2 This book is dedicated to my loving wife Amy and my precious daughter Giacinta. Table of Contents Preface .....................................................................................................vi Chapter 1 – Overview of Microsoft Access Databases ................................1 Chapter 2 – Design and Create Tables to Store Data ..................................7 Chapter 3 – Simplify Data Entry with Forms .............................................19 Chapter 4 – Obtain Valuable Information Using Queries ..........................32 Chapter 5 – Create Professional Quality Output with Reports ..................47 Chapter 6 – Design and Implement Powerful Relational Databases …..…..58 Chapter 7 – Build User-Friendly Database Systems ..................................68 Chapter
    [Show full text]
  • ACCESS Table of Contents
    ACCESS Table of Contents BASIC BUILDING BLOCKS OF AN ACCESS DATABASE .......................................... 1 Tables ................................................................................................................... 1 Forms ................................................................................................................... 1 Reports ................................................................................................................. 2 Macros .................................................................................................................. 2 Modules ................................................................................................................ 2 CREATING A DATABASE ........................................................................................ 3 Create a database by using a template ................................................................... 3 Download a template from Office Online ................................................................. 4 Create a database without using a template ............................................................ 5 Create a blank database ......................................................................................... 5 CREATING TABLES ................................................................................................. 6 Create a table, starting in Datasheet view ............................................................... 6 Create a table, starting in Design view ...................................................................
    [Show full text]
  • Technical Reference for Microsoft Sharepoint Server 2010
    Technical reference for Microsoft SharePoint Server 2010 Microsoft Corporation Published: May 2011 Author: Microsoft Office System and Servers Team ([email protected]) Abstract This book contains technical information about the Microsoft SharePoint Server 2010 provider for Windows PowerShell and other helpful reference information about general settings, security, and tools. The audiences for this book include application specialists, line-of-business application specialists, and IT administrators who work with SharePoint Server 2010. The content in this book is a copy of selected content in the SharePoint Server 2010 technical library (http://go.microsoft.com/fwlink/?LinkId=181463) as of the publication date. For the most current content, see the technical library on the Web. This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Access, Active Directory, Backstage, Excel, Groove, Hotmail, InfoPath, Internet Explorer, Outlook, PerformancePoint, PowerPoint, SharePoint, Silverlight, Windows, Windows Live, Windows Mobile, Windows PowerShell, Windows Server, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication.
    [Show full text]
  • Microsoft Access Expert 2019
    Course Orientation 40572A Microsoft Access expert 2019 Student version Microsoft license terms This courseware is the copyrighted work of Microsoft and/or its suppliers, and is licensed, not sold, to you. Microsoft grants you a license to use this courseware, but only in accordance with the “Guidelines” below. Except as expressly provided for herein, you may not copy, adapt, modify, prepare derivative works of, distribute, publicly display, sell or use this courseware, in whole or in part, for any commercial purpose without the express prior written consent of Microsoft Corporation. This courseware is provided to you “as-is.” Microsoft makes no warranties as to this courseware, express or implied. MICROSOFT CORPORATION HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS WITH REGARD TO THE SOFTWARE, INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR STATUTORY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON- INFRINGEMENT. Microsoft may change or alter the information in this courseware, including URL and other Internet Web site references, without notice to you. Examples depicted herein are provided for illustration purposes only and are fictitious. No real association or connection is intended or should be inferred. This courseware does not provide you with any legal rights to any intellectual property in or to any Microsoft products. The Microsoft Terms of Use are incorporated herein by reference. Guidelines This courseware is only for use by instructors and only to teach a class for current Microsoft Imagine Academy program members. As a student, the following terms apply to your use of this courseware: • you will not grant any rights to copy, adapt, modify, prepare derivative works of, distribute, publicly display or sell this courseware; • you may not distribute this courseware; and • you will maintain and not alter, obscure or remove any copyright or other protective notices, identifications or branding in or on the courseware.
    [Show full text]
  • Importing from Excel
    Access Tables 3: Importing from Excel [email protected] Access Tables 3: Importing from Excel 1.0 hours Create Tables from Existing Data ............................................................................................................ 3 Importing from Microsoft Excel .............................................................................................................. 3 Step 1: Source and Destination ........................................................................................................ 3 Step 2: Worksheet or Range ............................................................................................................ 4 Step 3: Specify Column Headings ..................................................................................................... 4 Step 4: Specify information about fields .......................................................................................... 5 Step 5: Set Primary Key field ............................................................................................................ 5 Step 6: Name the Table .................................................................................................................... 6 Step 7: Save the Import Steps .......................................................................................................... 6 Linking from Microsoft Excel ............................................................................................................ 7 Import Errors ..........................................................................................................................................
    [Show full text]
  • Introduction to Microsoft Powerapps for Access Web Apps Developers
    ABSTRACT The one constant in software technology is that it’s constantly changing. You might ask: “What alternative is there to create a mobile or online solution for Microsoft Access?” Microsoft believes that Microsoft PowerApps is the answer. Although PowerApps is a relatively new product, Microsoft is making a significant investment in PowerApps to make it a premiere tool for business solutions and is adding new features on a regular basis. The purpose of this white paper is to demonstrate that PowerApps is a successor tool worthy of consideration for an Access web apps power user and developer. What follows is an in-depth comparison of INTRODUCTION TO PowerApps and Access Web apps that examines the pros, cons, and similarities of each tool, their key features, and the way data is managed. Hopefully, MICROSOFT you’ll take the time to try out PowerApps and add it to your business solutions toolkit. Ben Clothier, Andy Tabisz POWERAPPS FOR March, 2017 ACCESS WEB APPS DEVELOPERS Page 1 of 33 What is Microsoft PowerApps? .................................................................................................................... 3 What makes PowerApps different from Access web apps? ..................................................................... 3 Mobile-first ........................................................................................................................................... 3 Multiple data sources ..........................................................................................................................
    [Show full text]
  • Microsoft Access 2003 - a Beginners' Guide
    Microsoft Access 2003 - A Beginners' Guide This document is an introduction to Microsoft Access 2003, running under Microsoft Windows XP. For further information see Microsoft Access 2003 - An Intermediate Guide. Introduction A database manager is a computer program for storing information in an easily retrievable form. It is used mainly to store text and numbers (for example, the Library catalogue, which includes the author, title, class number and accession number for each book). Most modern database managers also allow the storage of other types of information such as dates, hyperlinks, pictures and sounds. As well as being able to store data, a database allows you to select information quickly and easily (for example, a list of the books written by a particular author or those on a certain subject). Finally, it may allow you to produce printed summaries (reports) of the information selected. When setting up your own database, it is important to plan its use in advance. This is particularly important if you are setting one up which will be used by other people. Among the things which you should consider are: • What information you will need to store • What information you want to get out • Who the data is intended for and how other users will use it • Whether you want to restrict access to parts of the data to some users only • Who is allowed to add or change data • If your data refers to actual people, it may need to be registered under the Data Protection Act Although you can change the specifications of your database as you develop it, you will save yourself a lot of work if as much as possible is planned in advance.
    [Show full text]