tutorial 4 creating forms and reports - koç...

Post on 05-Feb-2018

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Microsoft Access 2013® ®

Tutorial4CreatingFormsandReports

XPXPXPObjectives• Session4.1– CreateaformusingtheFormWizard– Applyathemetoaform– Addapicturetoaform– Changethecoloroftextonaform– Findandmaintaindatausingaform– Previewandprintselectedformrecords– Createaformwithamainformandasubform

NewPerspectivesonMicrosoftAccess2013 2

XPXPXPObjectives(Cont.)• Session4.2– CreateareportusingtheReportWizard– Applyathemetoareport– Changethealignmentoffieldvaluesonareport–Moveandresizefieldsinareport– Insertapictureinareport– Changethecoloroftextonareport– Applyconditionalformattinginareport– Previewandprintareport

NewPerspectivesonMicrosoftAccess2013 3

XPXPXPCreatingFormsandReports

• Case- ChathamCommunityHealthServicesUsingFormsandReportstoDisplayPatientandVisitData

– UserwantsthedatabasetoincludeaformbasedonthePatienttabletomakeiteasierforstaffmemberstoenterandchangedataabouttheclinic’spatients

– AlsowantsthedatabasetoincludeaformthatshowsdatafromboththePatientandVisittablesatthesametime

– Wouldliketoincludeaformattedreportofpatientandvisitdatasotheywillhaveprintedoutputwhencompletingpatientanalysesandplanningstrategiesforcommunityoutreachefforts

NewPerspectivesonMicrosoftAccess2013 4

XPXPXPCreatingFormsandReports(Cont.)

NewPerspectivesonMicrosoftAccess2013 5

XPXPXPCreatingFormsandReports(Cont.)

NewPerspectivesonMicrosoftAccess2013 6

XPXPXPCreatingaFormUsingtheFormWizard

• A formisanobjectyouusetoenter,edit,andviewrecordsinadatabase– Youcandesignyourown

formsorhaveAccesscreate themforyouautomatically

NewPerspectivesonMicrosoftAccess2013 7

XPXPXPCreatingaFormUsingtheFormWizard(Cont.)

NewPerspectivesonMicrosoftAccess2013 8

XPXPXPModifyingaForm’sDesigninLayoutView

NewPerspectivesonMicrosoftAccess2013 9

• YoumightneedtomodifyitsdesigninLayoutviewtoimproveitsappearanceortomaketheformeasiertouse• InLayoutview,youseetheformasitappearsinForm

view,butyoucanstillmodifytheform’sdesign• InFormview,youcannotmakeanydesignchanges

• Layoutviewmakesiteasyforyoutoseetheresultsofanydesignchangesyoumake• Youcancontinuetomakechanges,undomodifications,

andreworkthedesigninLayoutviewtoachievethelookyouwantfortheform

XPXPXPModifyingaForm’sDesigninLayoutView(Cont.)

• ApplyingaThemetoaForm– Bydefault,aformsusetheOfficetheme,whichdeterminesthecolorandfontusedontheform

– Accessprovidesmanybuilt-inthemes• Makesiteasytocreateobjectswithaunified look

• Youcanalsocreateacustomized theme ifnoneofthebuilt-inthemessuityourneeds

NewPerspectivesonMicrosoftAccess2013 10

XPXPXPModifyingaForm’sDesigninLayoutView(Cont.)

NewPerspectivesonMicrosoftAccess2013 11

XPXPXPModifyingaForm’sDesigninLayoutView(Cont.)

• AddingaPicturetoaForm– Apictureisoneofmanycontrolsyoucanaddandmodifyonaform• Acontrol isanitemonaform, report,orotherdatabaseobjectthatyoucanmanipulate tomodifytheobject’sappearance

NewPerspectivesonMicrosoftAccess2013 12

XPXPXPModifyingaForm’sDesigninLayoutView(Cont.)

• ChangingtheColoroftheFormTitle– TheFontgroupontheFORMATtabprovidesmanyoptionsyoucanusetochangetheappearanceoftextonaform

NewPerspectivesonMicrosoftAccess2013 13

XPXPXPNavigatingaForm• Toview,navigate,andchangedatausingaform,youneedtodisplaytheforminFormview– Navigateaforminthesamewaythatyounavigateatabledatasheet

– ThenavigationmodeandeditingmodekeyboardshortcutsyouusedwithdatasheetsinTutorial3arethesamewhennavigatingaform

NewPerspectivesonMicrosoftAccess2013 14

XPXPXPFindingDataUsingaForm• TheFindcommandletsyousearchfordatainadatasheetsoyoucandisplayonlythoserecordsyouwanttoview

• YoucanalsousetheFindcommandtosearchfordatainaform– Youchooseafieldtoserveasthebasisforthesearchbymakingthatfieldthecurrentfield,andthenyouenterthevalueyouwantAccesstomatchintheFindandReplacedialogbox

NewPerspectivesonMicrosoftAccess2013 15

XPXPXPFindingDataUsingaForm(Cont.)

NewPerspectivesonMicrosoftAccess2013 16

XPXPXPMaintaining TableDataUsingaForm

NewPerspectivesonMicrosoftAccess2013 17

• Maintainingdatausingaformisofteneasierthanusingadatasheetbecauseyoucanfocusonallthechangesforasinglerecordatonetime

• InFormview,youcaneditthefieldvaluesforarecord,deletearecordfromtheunderlyingtable,oraddanewrecord

XPXPXPPreviewingandPrintingSelectedFormRecords

NewPerspectivesonMicrosoftAccess2013 18

• Accessprintsasmanyformrecordsascanfitonaprintedpage– Ifonlypartofaformrecord fitsonthebottomofapage, the

remainder oftherecordprintsonthenextpage

• Accessallowsyoutoprintallpagesorarangeofpages.Inaddition,youcanprintthecurrentlyselectedformrecord

XPXPXP

• Tocreateaformbasedontwotables,youmustfirstdefinearelationshipbetweenthetwotables– Whenyoucreateaformcontainingdatafromtwotables thathavea

one-to-many relationship, youactuallycreateamainformfordatafromtheprimarytableandasubform fordatafromtherelated table

– Accessuses thedefined relationship between thetables tojointhemautomaticallythrough thecommonfield thatexists inbothtables

CreatingaFormwithaMainFormandaSubform

NewPerspectivesonMicrosoftAccess2013 19

XPXPXPCreatingaFormwithaMainFormandaSubform(Cont.)

NewPerspectivesonMicrosoftAccess2013 20

XPXPXPCreatingaReportUsingtheReportWizard

NewPerspectivesonMicrosoftAccess2013 21

XPXPXP

• A reportisaformattedprintoutorscreendisplayofthecontentsofoneormoretablesorqueriesinadatabase– InAccess,youcancreateyourownreportsorusetheReportWizardtocreatethemforyou

– Youcanalwayschangeareport’sdesignafteryoucreateit

CreatingaReportUsingtheReportWizard(Cont.)

NewPerspectivesonMicrosoftAccess2013 22

XPXPXPCreatingaReportUsingtheReportWizard(Cont.)

NewPerspectivesonMicrosoftAccess2013 23

XPXPXPCreatingaReportUsingtheReportWizard(Cont.)

NewPerspectivesonMicrosoftAccess2013 24

XPXPXP

• ApplyingaThemetoaReport– Thesamethemes available forformsarealsoavailable forreports– Youcanchoose toapplyathemetothecurrent reportobjectonly,or

toallreports inthedatabase

• ChangingtheAlignmentofFieldValues– TheFORMATtabinLayoutview,oneoftheREPORTLAYOUTTOOLS

contextual tabs,provides optionsforyoutoeasilymodifytheformatofvariousreportobjects

ModifyingaReport’sDesigninLayoutView

NewPerspectivesonMicrosoftAccess2013 25

XPXPXP

• MovingandResizingFieldsonaReport– WorkinginLayoutview,youcanresizeandrepositionfieldsandfieldvalueboxestoimprovetheappearanceofareportortoaddresstheproblemofsomefieldvaluesnotbeingcompletelydisplayed

ModifyingaReport’sDesigninLayoutView(Cont.)

NewPerspectivesonMicrosoftAccess2013 26

XPXPXP

• ChangingtheTitleFontColorandInsertingaPictureinaReport– Youcanchangethecoloroftextonareporttoenhanceitsappearance

– Youcanalsoaddapicturetoareportforvisualinterestortoidentifyaparticularsectionofthereport

ModifyingaReport’sDesigninLayoutView(Cont.)

NewPerspectivesonMicrosoftAccess2013 27

XPXPXPUsingConditional Formatting inaReport

NewPerspectivesonMicrosoftAccess2013 28

• Conditionalformatting inareport(orform)isspecialformattingappliedtocertainfieldvaluesdependingononeormoreconditions—similartocriteriayouestablishforqueries– Ifafieldvaluemeetstheconditionorconditionsyouspecify,theformattingisappliedtothevalue

XPXPXPUsingConditional Formatting inaReport(Cont.)

NewPerspectivesonMicrosoftAccess2013 29

XPXPXPUsingConditionalFormattinginaReport(Cont.)

NewPerspectivesonMicrosoftAccess2013 30

• ViewingthedatabaseobjectsintheNavigationPane

top related