Microsoft Access 2013 ® ® Tutorial 8 Sharing, Integrating and Analyzing Data
Microsoft Access 2013® ®
Tutorial8Sharing,IntegratingandAnalyzingData
XPXPXPObjectives• Session8.1– ExportanAccessquerytoanHTMLdocumentandviewthedocument
– ImportaCSVfileasanAccesstable– UsetheTableAnalyzer– ImportatablefromanotherAccessdatabase– ImportandexportXMLfiles– Saveandrunimportandexportspecifications
NewPerspectivesonMicrosoftAccess2013 2
XPXPXPObjectives(Cont.)• Session8.2– Createatabbedformusingatabcontrol– Understandthedifferencebetweenimporting,embedding,andlinkingexternalobjects
– Embedachartinaform– Createanduseanapplicationpart– ExportaPDFfile– LinkdatafromanExcelworkbook
NewPerspectivesonMicrosoftAccess2013 3
XPXPXPSharing,IntegratingandAnalyzingData
• Case- ChathamCommunityHealthServicesCreatingCustomReportsforChathamCommunityHealthServices
• UserwantsotheremployeestohaveaccesstotheClinicdatabaseandsharedataamongthedifferentprogramsemployeesuse
• Userwouldalsoliketobeabletoanalyzethedatainthedatabase
• Tasksinclude:• Importing,exporting,linking,andembeddingdata• Creatingapplicationparts• Explorethechartingfeatures
NewPerspectivesonMicrosoftAccess2013 4
XPXPXPSharing,IntegratingandAnalyzingData(Cont.)
NewPerspectivesonMicrosoftAccess2013 5
XPXPXP
NewPerspectivesonMicrosoftAccess2013 6
Sharing,IntegratingandAnalyzingData(Cont.)
XPXPXPExportinganAccessQuerytoanHTMLDocument
NewPerspectivesonMicrosoftAccess2013 7
XPXPXPExportinganAccessQuerytoanHTMLDocument(Cont.)
NewPerspectivesonMicrosoftAccess2013 8
XPXPXPExportinganAccessQuerytoanHTMLDocument(Cont.)
NewPerspectivesonMicrosoftAccess2013 9
• ViewinganHTMLDocumentUsingInternetExplorer– YoucanviewtheHTMLdocumentthatyoucreatedusinganywebbrowser
– Right-clickCrosstabinthefilelisttoopentheshortcutmenu
– ClickOpenwith– Clickthenameofyourwebbrowser,suchasInternetExplorer
– ClicktheOKbutton(ifnecessary).InternetExplorerstartsandopenstheCrosstabwebpage
XPXPXPImportingaCSVFileasanAccessTable(Cont.)
NewPerspectivesonMicrosoftAccess2013 10
• ACSV(comma-separatedvalues)fileisatextfileinwhichcommasseparatevalues,andeachlineisarecordcontainingthesamenumberofvaluesinthesamepositions– ThisisacommonformatforrepresentingdatainatableandisusedbyspreadsheetapplicationssuchasExcelaswellasdatabaseapplications
XPXPXPImportingaCSVFileasanAccessTable(Cont.)
NewPerspectivesonMicrosoftAccess2013 11
XPXPXPImportingaCSVFileasanAccessTable(Cont.)
NewPerspectivesonMicrosoftAccess2013 12
XPXPXPImportingaCSVFileasanAccessTable(Cont.)
NewPerspectivesonMicrosoftAccess2013 13
XPXPXPImportingaCSVFileasanAccessTable(Cont.)
NewPerspectivesonMicrosoftAccess2013 14
AnalyzingaTablewiththeTableAnalyzer– TheTableAnalyzeranalyzesasingletableand,ifnecessary,splitsitintotwoormoretablesthatareinthirdnormalform
– TheTableAnalyzeralsolooksforredundantdatainthetableandremovesredundantfieldsfromthetableandthenplacestheminnewtables
XPXPXPImportingatablefromanAccessDatabase
NewPerspectivesonMicrosoftAccess2013 15
• Youcanimporttables,queries,reports,andotherAccessdatabaseobjects
XPXPXPImportingatablefromanAccessDatabase(Cont.)
NewPerspectivesonMicrosoftAccess2013 16
XPXPXPUsingXML
NewPerspectivesonMicrosoftAccess2013 17
• XML(ExtensibleMarkupLanguage)isaprogramminglanguagethatissimilarinformattoHTML,butismorecustomizableandissuitedtotheexchangeofdatabetweendifferentprograms
• UnlikeHTML,whichusesafixedsetoftagstodescribetheappearanceofawebpage,developerscancustomizeXMLtodescribethedataitcontainsandhowthatdatashouldbestructured
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 18
ImportingDatafromanXMLFile• AccesscanimportdatafromanXMLfiledirectlyintoadatabasetable
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 19
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 20
• SavingandRunningImportSpecifications– Ifyouneedtorepeatthesameimportproceduremanytimes,youcansavethestepsfortheprocedureandexpeditefutureimportsbyrunningthesavedimportstepswithoutusingawizard
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 21
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 22
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 23
ExportinganAccessTableasanXMLFile
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 24
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 25
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 26
SavingandRunningExportSpecifications• SavingthestepstoexportatableasanXMLfilewillsavetimeandeliminateerrors
XPXPXPUsingXML(Cont.)
NewPerspectivesonMicrosoftAccess2013 27
XPXPXPCreatingaTabbedFormUsingaTabControl
NewPerspectivesonMicrosoftAccess2013 28
XPXPXP
• UsetheTabControltooltoinsertatabcontrol,whichisacontrolthatappearswithtabsatthetop,withonetabforeachform
• Userscanswitchbetweenformsbyclickingthetabs
CreatingaTabbedFormUsingaTabControl(Cont.)
NewPerspectivesonMicrosoftAccess2013 29
XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)
NewPerspectivesonMicrosoftAccess2013 30
XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)
NewPerspectivesonMicrosoftAccess2013 31
XPXPXPCreatingaTabbedFormUsingaTabControl(Cont.)
NewPerspectivesonMicrosoftAccess2013 32
XPXPXPIntegratingAccesswithOtherPrograms
NewPerspectivesonMicrosoftAccess2013 33
• Whenyouintegrateinformationbetweenprograms,theprogramcontainingtheoriginalinformation,orobject,iscalledthesourceprogram,andtheprograminwhichyouplacetheinformationcreatedbythesourceprogramiscalledthedestinationprogram
• Accessoffersthreewaysforyoutointegrateobjectscreatedbyotherprograms– Importing- Whenyouimportanobject,youincludethecontentsofafileinanewtableorappendittoanexistingtable,oryouincludethecontentsofthefileinaform,report,orfield
XPXPXPIntegratingAccesswithOtherPrograms (Cont.)
NewPerspectivesonMicrosoftAccess2013 34
– Embedding - Whenyouembedanobjectinaform,report,orfield,youpreserveitsconnectiontothesourceprogram,whichenablesyoutoedittheobject.However,anychangesyoumaketotheobjectarereflectedonlyintheform,report,orfieldinwhichitisembedded;thechangesdonotaffecttheoriginalobjectinthefilefromwhichitwasembedded
– Linking- Whenyoulinkanobjecttoaform,report,orfield,youincludeaconnectioninthedestinationprogramtotheoriginalfilemaintainedbythesourceprogram;youdonotstoredatafromthefileinthedestinationprogram.Anychangesyoumaketotheoriginalfileusingthesourceprogramarereflectedinthelinkedfileversioninthedestinationprogram
XPXPXPEmbeddingaChartinaForm
NewPerspectivesonMicrosoftAccess2013 35
XPXPXPEmbeddingaChartinaForm(Cont.)
NewPerspectivesonMicrosoftAccess2013 36
XPXPXPEmbeddingaChartinaForm(Cont.)
NewPerspectivesonMicrosoftAccess2013 37
XPXPXPEmbeddingaChartinaForm(Cont.)
NewPerspectivesonMicrosoftAccess2013 38
XPXPXPEmbeddingaChartinaForm(Cont.)
NewPerspectivesonMicrosoftAccess2013 39
XPXPXPUsingTemplatesandApplicationParts
NewPerspectivesonMicrosoftAccess2013 40
• Atemplateisapredefineddatabasethatcanincludetables,relationships,queries,forms,reports,andotherdatabaseobjects– Youcancreateyourowntemplatefromanexistingdatabasefileor
choosefromalistofpredefinedtemplates– Inadditiontocreatingastandardtemplate,youcanalsocreatean
applicationpart,whichisaspecializedtemplatethatcanbeimportedintoanexistingdatabase
– Astandardtemplatewouldbeusedtocreateanewdatabasefile– Anapplicationpartisusedwhenyoualreadyhaveadatabasefilethat
you’reworkingwith,andwouldliketoincludethecontentfromanapplicationpartinyourexistingdatabase
XPXPXPUsingTemplatesandApplicationParts(Cont.)
NewPerspectivesonMicrosoftAccess2013 41
XPXPXPUsingTemplatesandApplicationParts(Cont.)
NewPerspectivesonMicrosoftAccess2013 42
XPXPXPUsingTemplatesandApplicationParts(Cont.)
NewPerspectivesonMicrosoftAccess2013 43
XPXPXPUsingTemplatesandApplicationParts(Cont.)
NewPerspectivesonMicrosoftAccess2013 44
XPXPXPExportingareporttoaPDFFile
NewPerspectivesonMicrosoftAccess2013 45
• PDF(portabledocumentformat)isafileformatthatpreservestheoriginalformattingandpaginationofitscontentsnomatterwhereit’sviewed– CurrentversionsofallmajoroperatingsystemsfordesktopcomputersandhandhelddevicesincludesoftwarethatopensPDFfiles
XPXPXPExportingareporttoaPDFFile(Cont.)
NewPerspectivesonMicrosoftAccess2013 46
XPXPXPLinkingDatafromanExcelWorksheet
NewPerspectivesonMicrosoftAccess2013 47
XPXPXPLinkingDatafromanExcelWorksheet(Cont.)
NewPerspectivesonMicrosoftAccess2013 48