Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Microsoft Access 2013® ®
Tutorial7CreatingCustomReports
XPXPXPObjectives• Session7.1– View,filter,andcopyreportinformationinReportview
– ModifyareportinLayoutview– ModifyareportinDesignview
NewPerspectivesonMicrosoftAccess2013 2
XPXPXPObjectives(Cont.)• Session7.2– Designandcreateacustomreport– Sortandgroupdatainareport– Add,move,resize,andaligncontrolsinareport– Addlinestoareport– Hideduplicatevaluesinareport
NewPerspectivesonMicrosoftAccess2013 3
XPXPXPObjectives(Cont.)• Session7.3– Addthedate,pagenumbers,andtitletoareport– Createandmodifymailinglabels
NewPerspectivesonMicrosoftAccess2013 4
XPXPXPCustomizingExistingReports
• Case- ChathamCommunityHealthServicesCreatingCustomReportsforChathamCommunityHealthServices
• Userwantstomakesomechangestoanexistingreportinthedatabaseandrequestedanewreportthatwillbeusedtoproduceaprintedlistofallinvoicesforallvisits
– Reportcustomizationincludes:• Groupingdata• Calculatingtotals• Addinglinestoseparatereportsections
NewPerspectivesonMicrosoftAccess2013 5
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 6
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 7
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 8
• Areportisaformattedoutput(screendisplayorprintout)ofthecontentsofoneormoretablesinadatabase– Althoughyoucanformatandprintdatausingdatasheets,queries,andforms,reportsoffergreaterflexibilityandprovideamoreprofessional,readableappearance
• YouneedtoproduceacustomreportwhenevertheReporttoolortheReportWizardcannotautomaticallycreatethespecificreportyouneed,orwhenyouneedtofine-tuneanexistingreporttofixformattingproblemsortoaddcontrolsandspecialfeatures
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 9
ViewingaReportinReportView• YoucanviewreportsonscreeninPrintPreview,Layoutview,Designview,andReportView
• Reportviewprovidesaninteractiveviewofareport– YoucanuseReportviewtoviewthecontentsofareportandtoapplyafiltertoitsdata
– YoucanalsocopyselectedportionsofthereporttotheClipboardandusetheselecteddatainanotherprogram
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 10
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 11
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 12
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 13
ModifyingaReportinLayoutView• YoucanmakereportchangesinLayoutview• ModifyingareportinLayoutviewissimilartomodifyingaforminLayoutview
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 14
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 15
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 16
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 17
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 18
ModifyingaReportinDesignView• AreportinDesignviewisdividedintosevensections:
– ReportHeadersection—appearsonceatthebeginningofareportandisusedforreporttitles,companylogos,reportintroductions,dates,visualelementssuchaslines,andcoverpages
– PageHeadersection—appearsatthetopofeachpageofareportandisusedforpagenumbers,columnheadings,reporttitles,andreportdates
– GroupHeadersection—appearsbeforeeachgroupofrecordsthatsharethesamesortfieldvalue,andusuallydisplaysthegroupnameandthesortfieldvalueforthegroup
– Detailsection—containstheboundcontrolstodisplaythefieldvaluesforeachrecordintherecordsource
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 19
ModifyingaReportinDesignView• AreportinDesignviewisdividedintosevensections:
– GroupFootersection—appearsaftereachgroupofrecordsthatsharethesamesortfieldvalue,andusuallydisplayssubtotalsorcountsfortherecordsinthatgroup
– PageFootersection—appearsatthebottomofeachpageofareportandisusedforpagenumbers,briefexplanationsofsymbolsorabbreviations,orotherinformationsuchasacompanyname
– ReportFootersection—appearsonceattheendofareportandisusedforreporttotalsandothersummaryinformation
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 20
XPXPXPCustomizingExistingReports(Cont.)
NewPerspectivesonMicrosoftAccess2013 21
XPXPXPDesigningaCustomReport
NewPerspectivesonMicrosoftAccess2013 22
XPXPXPDesigningaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 23
XPXPXPCreatingaQueryforaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 24
XPXPXPCreatingaCustomReport
NewPerspectivesonMicrosoftAccess2013 25
XPXPXPCreatingaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 26
XPXPXP
SortingandGroupingDatainaReport• Accessletsyouorganizerecordsinareportbysortingthemusingoneormoresortfields– EachsortfieldcanalsobeagroupingfieldwhichcanincludeaGroupHeadersectionandaGroupFootersectionforthegroup
CreatingaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 27
XPXPXPCreatingaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 28
XPXPXPCreatingaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 29
XPXPXPCreatingaCustomReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 30
XPXPXPWorkingwithControlsinDesignView
NewPerspectivesonMicrosoftAccess2013 31
• DesignviewgivesyougreatercontrolovertheplacementandsizingofcontrolsthanLayoutview– Itletsyouaddandmanipulatemanymorecontrols– Thispowercomesattheexpenseofnotbeingabletoseelivedatainthecontrolstoguideyouasyoumakechanges
XPXPXPWorkingwithControlsinDesignView(Cont.)
NewPerspectivesonMicrosoftAccess2013 32
XPXPXPWorkingwithControlsinDesignView(Cont.)
NewPerspectivesonMicrosoftAccess2013 33
XPXPXPWorkingwithControlsinDesignView(Cont.)
NewPerspectivesonMicrosoftAccess2013 34
AddingLinestoaReport• You’veusedtheLinetooltoaddlinestoaformorareport
XPXPXPHidingDuplicateValuesinaReport
NewPerspectivesonMicrosoftAccess2013 35
• UsetheHideDuplicatespropertytohideacontrolinareportwhenthecontrol’svalueisthesameasthatoftheprecedingrecordinthegroup
XPXPXPAddingtheDatetoaReport
NewPerspectivesonMicrosoftAccess2013 36
XPXPXPAddingtheDatetoaReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 37
XPXPXPAddingtheDatetoaReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 38
XPXPXPAddingtheDatetoaReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 39
AddingPageNumberstoaReport• DisplaypagenumbersinareportbyincludinganexpressioninthePageHeaderorPageFootersection
• Theinsertedpagenumberexpressionautomaticallydisplaysthecorrectpagenumberoneachpageofareport
XPXPXPAddingtheDatetoaReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 40
XPXPXPAddingtheDatetoaReport(Cont.)
NewPerspectivesonMicrosoftAccess2013 41
XPXPXPAddingaTitletoaReport
NewPerspectivesonMicrosoftAccess2013 42
XPXPXPCreatingMailingLabels
NewPerspectivesonMicrosoftAccess2013 43
• Acustomreportcouldproducemailinglabels,butusingtheLabelWizardiseasierandfasterway– Itprovidestemplatesforhundredsofstandardlabelformats,eachofwhichisuniquelyidentifiedbyalabelmanufacturer’snameandnumber
– Thesetemplatesspecifythedimensionsandarrangementoflabelsoneachpage
– Standardlabelformatscanhavebetweenoneandfivelabelsacrossapage;thenumberoflabelsprintedonasinglepagealsovaries
• MostmailinglabelsaremanufacturedbyAvery
XPXPXPCreatingMailingLabels(Cont.)
NewPerspectivesonMicrosoftAccess2013 44
XPXPXPCreatingMailingLabels(Cont.)
NewPerspectivesonMicrosoftAccess2013 45
XPXPXPCreatingMailingLabels(Cont.)
NewPerspectivesonMicrosoftAccess2013 46