Tutorial 8 Slides

advertisement
Tutorial8
Sharing,Integrating
andAnalyzingData
Microsoft Access 2013
®
®
Objectives
XP
• Session8.1
– ExportanAccessquerytoanHTMLdocumentand
viewthedocument
– ImportaCSVfileasanAccesstable
– UsetheTableAnalyzer
– ImportatablefromanotherAccessdatabase
– ImportandexportXMLfiles
– Saveandrunimportandexportspecifications
NewPerspectiveson Microsoft Access2013
2
Objectives
(Cont.)
XP
• Session8.2
– Createatabbedformusingatabcontrol
– Understandthedifferencebetweenimporting,
embedding,andlinkingexternalobjects
– Embedachartinaform
– Createanduseanapplicationpart
– ExportaPDFfile
– LinkdatafromanExcelworkbook
NewPerspectiveson Microsoft Access2013
3
Sharing,IntegratingandAnalyzingData
XP
• Case- ChathamCommunityHealthServices
CreatingCustomReportsforChathamCommunity HealthServices
• UserwantsotheremployeestohaveaccesstotheClinic
databaseandsharedataamongthedifferentprograms
employeesuse
• Userwouldalsoliketobeabletoanalyzethedatainthe
database
• Tasksinclude:
• Importing,exporting,linking,andembeddingdata
• Creatingapplicationparts
• Explorethechartingfeatures
NewPerspectiveson Microsoft Access2013
4
Sharing,IntegratingandAnalyzingData
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
5
Sharing,IntegratingandAnalyzingData
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
6
ExportinganAccessQuerytoanHTML
Document
NewPerspectiveson Microsoft Access2013
XP
7
ExportinganAccessQuerytoanHTML
Document
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
8
ExportinganAccessQuerytoanHTML
Document
XP
(Cont.)
• ViewinganHTMLDocumentUsingInternetExplorer
– YoucanviewtheHTMLdocumentthatyoucreatedusing
anywebbrowser
– Right-clickCrosstabinthefilelisttoopentheshortcut
menu
– ClickOpenwith
– Clickthenameofyourwebbrowser,suchasInternet
Explorer
– ClicktheOKbutton(ifnecessary).InternetExplorerstarts
andopenstheCrosstabwebpage
NewPerspectiveson Microsoft Access2013
9
ImportingaCSVFileasanAccessTable
XP
(Cont.)
• ACSV(comma-separatedvalues)fileisatextfileinwhich
commasseparatevalues,andeachlineisarecordcontaining
thesamenumberofvaluesinthesamepositions
– Thisisacommonformatforrepresentingdatainatable
andis
usedby
spreadsheet
applications
suchasExcel
aswellas
database
applications
NewPerspectiveson Microsoft Access2013
10
ImportingaCSVFileasanAccessTable
NewPerspectiveson Microsoft Access2013
XP
(Cont.)
11
ImportingaCSVFileasanAccessTable
NewPerspectiveson Microsoft Access2013
XP
(Cont.)
12
ImportingaCSVFileasanAccessTable
NewPerspectiveson Microsoft Access2013
XP
(Cont.)
13
ImportingaCSVFileasanAccessTable
XP
(Cont.)
AnalyzingaTablewiththeTableAnalyzer
– TheTableAnalyzeranalyzesasingletableand,if
necessary,splitsitintotwoormoretablesthatarein
thirdnormalform
– TheTableAnalyzeralsolooksforredundantdatainthe
tableandremovesredundantfieldsfromthetableand
thenplacestheminnewtables
NewPerspectiveson Microsoft Access2013
14
ImportingatablefromanAccess
Database
XP
• Youcanimporttables,queries,reports,andother
Accessdatabaseobjects
NewPerspectiveson Microsoft Access2013
15
ImportingatablefromanAccess
Database
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
16
UsingXML
XP
• XML(ExtensibleMarkupLanguage)isa
programminglanguagethatissimilarinformatto
HTML,butismorecustomizableandissuitedtothe
exchangeofdatabetweendifferentprograms
• UnlikeHTML,whichusesafixedsetoftagsto
describetheappearanceofawebpage,developers
cancustomizeXMLtodescribethedataitcontains
andhowthatdatashouldbestructured
NewPerspectiveson Microsoft Access2013
17
UsingXML
(Cont.)
XP
ImportingDatafromanXMLFile
• AccesscanimportdatafromanXMLfiledirectlyinto
adatabasetable
NewPerspectiveson Microsoft Access2013
18
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
19
UsingXML
(Cont.)
XP
• SavingandRunningImportSpecifications
– Ifyouneedtorepeatthesameimportproceduremany
times,youcansavethestepsfortheprocedureand
expeditefuture
importsby
runningthe
savedimport
stepswithout
usingawizard
NewPerspectiveson Microsoft Access2013
20
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
21
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
22
UsingXML
(Cont.)
XP
ExportinganAccessTableasanXMLFile
NewPerspectiveson Microsoft Access2013
23
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
24
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
25
UsingXML
(Cont.)
XP
SavingandRunningExportSpecifications
• Saving
thesteps
toexport
atableas
anXML
filewill
savetime
and
eliminate
errors
NewPerspectiveson Microsoft Access2013
26
UsingXML
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
27
CreatingaTabbedFormUsingaTab
Control
NewPerspectiveson Microsoft Access2013
XP
28
CreatingaTabbedFormUsingaTab
Control
XP
(Cont.)
• UsetheTabControltooltoinsertatabcontrol,
whichisacontrolthatappearswithtabsatthetop,
withonetab
foreachform
• Userscanswitch
betweenforms
byclickingthe
tabs
NewPerspectiveson Microsoft Access2013
29
CreatingaTabbedFormUsingaTab
Control
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
30
CreatingaTabbedFormUsingaTab
Control
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
31
CreatingaTabbedFormUsingaTab
Control
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
32
IntegratingAccesswithOtherPrograms
XP
• Whenyouintegrateinformationbetweenprograms,
theprogramcontainingtheoriginalinformation,or
object,iscalledthesourceprogram,andthe
programinwhichyouplacetheinformationcreated
bythesourceprogramiscalledthedestination
program
• Accessoffersthreewaysforyoutointegrateobjects
createdbyotherprograms
– Importing- Whenyouimportanobject,youincludethe
contentsofafileinanewtableorappendittoanexisting
table,oryouincludethecontentsofthefileinaform,
report,orfield
NewPerspectiveson Microsoft Access2013
33
IntegratingAccesswithOtherPrograms
XP
(Cont.)
– Embedding - Whenyouembedanobjectinaform,report,
orfield,youpreserveitsconnectiontothesourceprogram,
whichenablesyoutoedittheobject.However,anychanges
youmaketotheobjectarereflectedonlyintheform,
report,orfieldinwhichitisembedded;thechangesdonot
affecttheoriginalobjectinthefilefromwhichitwas
embedded
– Linking- Whenyoulinkanobjecttoaform,report,orfield,
youincludeaconnectioninthedestinationprogramtothe
originalfilemaintainedbythesourceprogram;youdonot
storedatafromthefileinthedestinationprogram.Any
changesyoumaketotheoriginalfileusingthesource
programarereflectedinthelinkedfileversioninthe
destinationprogram
NewPerspectiveson Microsoft Access2013
34
EmbeddingaChartinaForm
NewPerspectiveson Microsoft Access2013
XP
35
EmbeddingaChartinaForm
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
36
EmbeddingaChartinaForm
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
37
EmbeddingaChartinaForm
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
38
EmbeddingaChartinaForm
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
39
UsingTemplatesandApplicationParts
XP
• Atemplateisapredefineddatabasethatcanincludetables,
relationships,queries,forms,reports,andotherdatabase
objects
– Youcancreateyourowntemplatefromanexistingdatabasefileor
choosefromalistofpredefinedtemplates
– Inadditiontocreatingastandardtemplate,youcanalsocreatean
applicationpart,whichisaspecializedtemplatethatcanbeimported
intoanexistingdatabase
– Astandardtemplatewouldbeusedtocreateanewdatabasefile
– Anapplicationpartisusedwhenyoualreadyhaveadatabasefilethat
you’reworkingwith,andwouldliketoincludethecontentfroman
applicationpartinyourexistingdatabase
NewPerspectiveson Microsoft Access2013
40
UsingTemplatesandApplication
Parts
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
41
UsingTemplatesandApplication
Parts
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
42
UsingTemplatesandApplication
Parts
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
43
UsingTemplatesandApplication
Parts
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
44
ExportingareporttoaPDFFile
XP
• PDF(portabledocumentformat)isafileformatthat
preservestheoriginalformattingandpaginationof
itscontentsnomatterwhereit’sviewed
– Currentversionsofallmajoroperatingsystemsfordesktop
computersandhandhelddevicesincludesoftwarethat
opensPDFfiles
NewPerspectiveson Microsoft Access2013
45
ExportingareporttoaPDFFile
(Cont.)
NewPerspectiveson Microsoft Access2013
XP
46
LinkingDatafromanExcelWorksheetXP
NewPerspectiveson Microsoft Access2013
47
LinkingDatafromanExcelWorksheet
XP
(Cont.)
NewPerspectiveson Microsoft Access2013
48
Download