48
Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating and Analyzing Data

Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

Embed Size (px)

Citation preview

Page 1: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

Microsoft Access 2013® ®

Tutorial8Sharing,IntegratingandAnalyzingData

Page 2: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPObjectives• Session8.1– ExportanAccessquerytoanHTMLdocumentandviewthedocument

– ImportaCSVfileasanAccesstable– UsetheTableAnalyzer– ImportatablefromanotherAccessdatabase– ImportandexportXMLfiles– Saveandrunimportandexportspecifications

NewPerspectivesonMicrosoftAccess2013 2

Page 3: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPObjectives(Cont.)• Session8.2– Createatabbedformusingatabcontrol– Understandthedifferencebetweenimporting,embedding,andlinkingexternalobjects

– Embedachartinaform– Createanduseanapplicationpart– ExportaPDFfile– LinkdatafromanExcelworkbook

NewPerspectivesonMicrosoftAccess2013 3

Page 4: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPSharing,IntegratingandAnalyzingData

• Case- ChathamCommunityHealthServicesCreatingCustomReportsforChathamCommunityHealthServices

• UserwantsotheremployeestohaveaccesstotheClinicdatabaseandsharedataamongthedifferentprogramsemployeesuse

• Userwouldalsoliketobeabletoanalyzethedatainthedatabase

• Tasksinclude:• Importing,exporting,linking,andembeddingdata• Creatingapplicationparts• Explorethechartingfeatures

NewPerspectivesonMicrosoftAccess2013 4

Page 5: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPSharing,IntegratingandAnalyzingData(Cont.)

NewPerspectivesonMicrosoftAccess2013 5

Page 6: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXP

NewPerspectivesonMicrosoftAccess2013 6

Sharing,IntegratingandAnalyzingData(Cont.)

Page 7: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPExportinganAccessQuerytoanHTMLDocument

NewPerspectivesonMicrosoftAccess2013 7

Page 8: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPExportinganAccessQuerytoanHTMLDocument(Cont.)

NewPerspectivesonMicrosoftAccess2013 8

Page 9: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPExportinganAccessQuerytoanHTMLDocument(Cont.)

NewPerspectivesonMicrosoftAccess2013 9

• ViewinganHTMLDocumentUsingInternetExplorer– YoucanviewtheHTMLdocumentthatyoucreatedusinganywebbrowser

– Right-clickCrosstabinthefilelisttoopentheshortcutmenu

– ClickOpenwith– Clickthenameofyourwebbrowser,suchasInternetExplorer

– ClicktheOKbutton(ifnecessary).InternetExplorerstartsandopenstheCrosstabwebpage

Page 10: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingaCSVFileasanAccessTable(Cont.)

NewPerspectivesonMicrosoftAccess2013 10

• ACSV(comma-separatedvalues)fileisatextfileinwhichcommasseparatevalues,andeachlineisarecordcontainingthesamenumberofvaluesinthesamepositions– ThisisacommonformatforrepresentingdatainatableandisusedbyspreadsheetapplicationssuchasExcelaswellasdatabaseapplications

Page 11: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingaCSVFileasanAccessTable(Cont.)

NewPerspectivesonMicrosoftAccess2013 11

Page 12: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingaCSVFileasanAccessTable(Cont.)

NewPerspectivesonMicrosoftAccess2013 12

Page 13: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingaCSVFileasanAccessTable(Cont.)

NewPerspectivesonMicrosoftAccess2013 13

Page 14: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingaCSVFileasanAccessTable(Cont.)

NewPerspectivesonMicrosoftAccess2013 14

AnalyzingaTablewiththeTableAnalyzer– TheTableAnalyzeranalyzesasingletableand,ifnecessary,splitsitintotwoormoretablesthatareinthirdnormalform

– TheTableAnalyzeralsolooksforredundantdatainthetableandremovesredundantfieldsfromthetableandthenplacestheminnewtables

Page 15: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingatablefromanAccessDatabase

NewPerspectivesonMicrosoftAccess2013 15

• Youcanimporttables,queries,reports,andotherAccessdatabaseobjects

Page 16: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPImportingatablefromanAccessDatabase(Cont.)

NewPerspectivesonMicrosoftAccess2013 16

Page 17: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML

NewPerspectivesonMicrosoftAccess2013 17

• XML(ExtensibleMarkupLanguage)isaprogramminglanguagethatissimilarinformattoHTML,butismorecustomizableandissuitedtotheexchangeofdatabetweendifferentprograms

• UnlikeHTML,whichusesafixedsetoftagstodescribetheappearanceofawebpage,developerscancustomizeXMLtodescribethedataitcontainsandhowthatdatashouldbestructured

Page 18: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 18

ImportingDatafromanXMLFile• AccesscanimportdatafromanXMLfiledirectlyintoadatabasetable

Page 19: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 19

Page 20: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 20

• SavingandRunningImportSpecifications– Ifyouneedtorepeatthesameimportproceduremanytimes,youcansavethestepsfortheprocedureandexpeditefutureimportsbyrunningthesavedimportstepswithoutusingawizard

Page 21: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 21

Page 22: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 22

Page 23: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 23

ExportinganAccessTableasanXMLFile

Page 24: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 24

Page 25: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 25

Page 26: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 26

SavingandRunningExportSpecifications• SavingthestepstoexportatableasanXMLfilewillsavetimeandeliminateerrors

Page 27: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingXML(Cont.)

NewPerspectivesonMicrosoftAccess2013 27

Page 28: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPCreatingaTabbedFormUsingaTabControl

NewPerspectivesonMicrosoftAccess2013 28

Page 29: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXP

• UsetheTabControltooltoinsertatabcontrol,whichisacontrolthatappearswithtabsatthetop,withonetabforeachform

• Userscanswitchbetweenformsbyclickingthetabs

CreatingaTabbedFormUsingaTabControl(Cont.)

NewPerspectivesonMicrosoftAccess2013 29

Page 30: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)

NewPerspectivesonMicrosoftAccess2013 30

Page 31: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)

NewPerspectivesonMicrosoftAccess2013 31

Page 32: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)

NewPerspectivesonMicrosoftAccess2013 32

Page 33: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPIntegratingAccesswithOtherPrograms

NewPerspectivesonMicrosoftAccess2013 33

• Whenyouintegrateinformationbetweenprograms,theprogramcontainingtheoriginalinformation,orobject,iscalledthesourceprogram,andtheprograminwhichyouplacetheinformationcreatedbythesourceprogramiscalledthedestinationprogram

• Accessoffersthreewaysforyoutointegrateobjectscreatedbyotherprograms– Importing- Whenyouimportanobject,youincludethecontentsofafileinanewtableorappendittoanexistingtable,oryouincludethecontentsofthefileinaform,report,orfield

Page 34: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPIntegratingAccesswithOtherPrograms (Cont.)

NewPerspectivesonMicrosoftAccess2013 34

– Embedding - Whenyouembedanobjectinaform,report,orfield,youpreserveitsconnectiontothesourceprogram,whichenablesyoutoedittheobject.However,anychangesyoumaketotheobjectarereflectedonlyintheform,report,orfieldinwhichitisembedded;thechangesdonotaffecttheoriginalobjectinthefilefromwhichitwasembedded

– Linking- Whenyoulinkanobjecttoaform,report,orfield,youincludeaconnectioninthedestinationprogramtotheoriginalfilemaintainedbythesourceprogram;youdonotstoredatafromthefileinthedestinationprogram.Anychangesyoumaketotheoriginalfileusingthesourceprogramarereflectedinthelinkedfileversioninthedestinationprogram

Page 35: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPEmbeddingaChartinaForm

NewPerspectivesonMicrosoftAccess2013 35

Page 36: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPEmbeddingaChartinaForm(Cont.)

NewPerspectivesonMicrosoftAccess2013 36

Page 37: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPEmbeddingaChartinaForm(Cont.)

NewPerspectivesonMicrosoftAccess2013 37

Page 38: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPEmbeddingaChartinaForm(Cont.)

NewPerspectivesonMicrosoftAccess2013 38

Page 39: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPEmbeddingaChartinaForm(Cont.)

NewPerspectivesonMicrosoftAccess2013 39

Page 40: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingTemplatesandApplicationParts

NewPerspectivesonMicrosoftAccess2013 40

• Atemplateisapredefineddatabasethatcanincludetables,relationships,queries,forms,reports,andotherdatabaseobjects– Youcancreateyourowntemplatefromanexistingdatabasefileor

choosefromalistofpredefinedtemplates– Inadditiontocreatingastandardtemplate,youcanalsocreatean

applicationpart,whichisaspecializedtemplatethatcanbeimportedintoanexistingdatabase

– Astandardtemplatewouldbeusedtocreateanewdatabasefile– Anapplicationpartisusedwhenyoualreadyhaveadatabasefilethat

you’reworkingwith,andwouldliketoincludethecontentfromanapplicationpartinyourexistingdatabase

Page 41: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingTemplatesandApplicationParts(Cont.)

NewPerspectivesonMicrosoftAccess2013 41

Page 42: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingTemplatesandApplicationParts(Cont.)

NewPerspectivesonMicrosoftAccess2013 42

Page 43: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingTemplatesandApplicationParts(Cont.)

NewPerspectivesonMicrosoftAccess2013 43

Page 44: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPUsingTemplatesandApplicationParts(Cont.)

NewPerspectivesonMicrosoftAccess2013 44

Page 45: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPExportingareporttoaPDFFile

NewPerspectivesonMicrosoftAccess2013 45

• PDF(portabledocumentformat)isafileformatthatpreservestheoriginalformattingandpaginationofitscontentsnomatterwhereit’sviewed– CurrentversionsofallmajoroperatingsystemsfordesktopcomputersandhandhelddevicesincludesoftwarethatopensPDFfiles

Page 46: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPExportingareporttoaPDFFile(Cont.)

NewPerspectivesonMicrosoftAccess2013 46

Page 47: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPLinkingDatafromanExcelWorksheet

NewPerspectivesonMicrosoftAccess2013 47

Page 48: Tutorial 8 Sharing, Integrating and Analyzing Datahome.ku.edu.tr/.../indr481_fall2015/indr481_fall2015_tutorial8.pdf · Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating

XPXPXPLinkingDatafromanExcelWorksheet(Cont.)

NewPerspectivesonMicrosoftAccess2013 48