Top Banner
Microsoft Access 2013 ® ® Tutorial 3 Maintaining and Querying a Database
47

Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

Jun 11, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

Microsoft Access 2013® ®

Tutorial3Maintainingand

QueryingaDatabase

Page 2: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPObjectives• Session3.1– Find,modify,anddeleterecordsinatable– Hideandunhidefieldsinadatasheet–WorkintheQuerywindowinDesignview– Create,run,andsavequeries– Updatedatausingaquerydatasheet– Createaquerybasedonmultipletables– Sortdatainaquery– Filterdatainaquery

NewPerspectivesonMicrosoftAccess2013 2

Page 3: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPObjectives(Cont.)• Session3.2– Specifyanexactmatchconditioninaquery– Useacomparisonoperatorinaquerytomatcharangeofvalues

– UsetheAndandOrlogicaloperatorsinqueries– Changethefontsizeandalternaterowcolorinadatasheet– Createandformatacalculatedfieldinaquery– Performcalculationsinaqueryusingaggregatefunctionsandrecordgroupcalculations

– ChangethedisplayofdatabaseobjectsintheNavigationPane

NewPerspectivesonMicrosoftAccess2013 3

Page 4: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPMaintainingandQueryingaDatabase

• Case- ChathamCommunityHealthServicesUpdatingandRetrieving InformationAboutPatients,Visits, andInvoices

– Userwantstomakesureshehasup- to-datecontactinformation

– Theofficestaffalsomustmonitorbillingactivitytoensurethatinvoicesarepaidontimeandinfull

– Developnewstrategiesforpromotingservicesprovidedbytheclinic

– Analyzeotheraspectsofthebusinessrelatedtopatientvisitsandfinances

NewPerspectivesonMicrosoftAccess2013 4

Page 5: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPMaintainingandQueryingaDatabase(Cont.)

NewPerspectivesonMicrosoftAccess2013 5

Page 6: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPMaintainingandQueryingaDatabase(Cont.)

NewPerspectivesonMicrosoftAccess2013 6

Page 7: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingaDatabase• Updating,ormaintaining,adatabaseistheprocessof

adding,modifying,anddeletingrecordsindatabasetablestokeepthemcurrentandaccurate

• ModifyingRecords– Tomakeminorchanges,orselect thefieldvaluetoreplace itentirely

• TheF2keyisatogglethatyouusetoswitchbetween navigationmodeandeditingmode

– Innavigation mode,Access selects anentire fieldvalue. Ifyoutypewhileyouareinnavigationmode,yourtypedentryreplaces thehighlighted fieldvalue

– Ineditingmode,youcaninsertordeletecharacters inafieldvaluebasedonthelocationoftheinsertion point

NewPerspectivesonMicrosoftAccess2013 7

Page 8: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingaDatabase(Cont.)

NewPerspectivesonMicrosoftAccess2013 8

Page 9: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingaDatabase(Cont.)• HidingandUnhidingFields– WhenyouareviewingatableorquerydatasheetinDatasheetview,youmightwanttotemporarilyremovecertainfieldsfromthedisplayeddatasheet,makingiteasiertofocusonthedatayou’reinterestedinviewing

– TheHideFieldscommandremovesthedisplayofoneormorefields• Canbeespeciallyusefulinatablewithmanyfields

– TheUnhideFieldscommandredisplaysanyhiddenfields

NewPerspectivesonMicrosoftAccess2013 9

Page 10: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingaDatabase(Cont.)• FindingDatainaTable– Accessprovidesoptionsyoucanusetolocatespecificfieldvaluesinatable• TheFindcommandsearchesatableorquerydatasheet,oraform,tolocateaspecificfieldvalueorpartofafieldvalue

NewPerspectivesonMicrosoftAccess2013 10

Page 11: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingaDatabase(Cont.)• DeletingRecords– Todeletearecord,youneedtoselecttherecordinDatasheetview,andthendeleteitusingtheDeletebuttonintheRecordsgroupontheHOMEtabortheDeleteRecordoptionontheshortcutmenu

NewPerspectivesonMicrosoftAccess2013 11

Page 12: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPIntroductiontoQueries• Accessprovidespowerfulquerycapabilitiesthatallowyoutodothefollowing:– Displayselected fieldsandrecords fromatable– Sortrecords– Performcalculations– Generate datafor forms, reports,andotherqueries– Updatedatainthetables inadatabase– Findanddisplaydatafromtwoormore tables

• Theanswertoaselectqueryisreturnedintheformofadatasheet– Theresultofaqueryisalsoreferred toasarecordset because the

queryproducesasetofrecords thatanswersyourquestion

NewPerspectivesonMicrosoftAccess2013 12

Page 13: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPIntroductiontoQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 13

Page 14: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingandRunningaQuery

NewPerspectivesonMicrosoftAccess2013 14

Page 15: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingandRunningaQuery(Cont.)

NewPerspectivesonMicrosoftAccess2013 15

Page 16: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUpdatingDataUsingaQuery

NewPerspectivesonMicrosoftAccess2013 16

• Aquerydatasheetistemporaryanditscontentsarebasedonthecriteriainthequerydesigngrid• Youcanstillupdatethedatainatableusingaquerydatasheet

• Insteadofmakingthechangesinthetabledatasheet,youcanmaketheminthePatientEmailquerydatasheetbecausethequeryisbasedonthePatienttable

• TheunderlyingPatienttablewillbeupdatedwiththechangesyoumake

Page 17: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingaMultitableQuery

NewPerspectivesonMicrosoftAccess2013 17

• Amultitablequeryisaquerybasedonmorethanonetable

• Ifyouwanttocreateaquerythatretrievesdatafrommultipletables,thetablesmusthaveacommonfield

Page 18: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXP

• Sortingistheprocessofrearrangingrecordsinaspecifiedorderorsequence– Sometimesyoumightneed tosortdatabefore displayingorprintingit

tomeetaspecific request

• Tosortrecords,youmustselectthesortfield,whichisthefieldusedtodeterminetheorderofrecordsinthedatasheet

SortingDatainaQuery

NewPerspectivesonMicrosoftAccess2013 18

Page 19: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPSortingDatainaQuery(Cont.)

• WhenworkinginDatasheetviewforatableorquery,eachcolumnheadinghasanarrowtotherightofthefieldname– ArrowgivesyouaccesstotheAutoFilter feature,whichenablesyoutoquicklysortanddisplayfieldvaluesinvariousways

NewPerspectivesonMicrosoftAccess2013 19

Page 20: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPSortingDatainaQuery(Cont.)• SortingonMultipleFieldsinDesignView– Sortfieldscanbeuniqueornonunique

• Asortfield isunique ifthevalueinthesort fieldforeachrecord isdifferent

• Asortfield isnonunique ifmore thanonerecordcanhave thesamevalue forthesortfield– Whenthesortfieldisnonunique, recordswiththesamesortfieldvaluearegrouped together, buttheyarenotsorted inaspecificorderwithinthegroup

– Toarrange thesegroupedrecords inaspecificorder,youcanspecifyasecondary sort field,whichisasecond fieldthatdetermines theorderofrecords thatarealreadysortedbytheprimary sort field(the firstsortfieldspecified)

NewPerspectivesonMicrosoftAccess2013 20

Page 21: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPSortingDatainaQuery(Cont.)

NewPerspectivesonMicrosoftAccess2013 21

Page 22: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPFilteringData• Afilterisasetofrestrictionsyouplaceontherecordsto

temporarilyisolateasubsetoftherecords– Letsyouviewdifferent subsetsofdisplayedrecords sothatyoucan

focusononlythedatayouneed– Anapplied filter isnotavailable thenexttimeyourunthequeryor

opentheform(unless ithasbeensaved)

• ThesimplesttechniqueforfilteringrecordsisFilterBySelection– Letsyouselectallorpartofafieldvalue inadatasheet orform,and

thendisplayonlythoserecords thatcontaintheselected value inthefield

– Another technique forfiltering records istouseFilterByForm,whichchangesyourdatasheet todisplayblankfields

NewPerspectivesonMicrosoftAccess2013 22

Page 23: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPFilteringData(Cont.)

NewPerspectivesonMicrosoftAccess2013 23

Page 24: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPSelectionCriteriainQueries

NewPerspectivesonMicrosoftAccess2013 24

Page 25: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXP

• TotellAccesswhichrecordsyouwanttoselect,youmustspecifyaconditionaspartofthequery– Aconditionusuallyincludesoneofthecomparisonoperators

DefiningRecordSelectionCriteriaforQueries

NewPerspectivesonMicrosoftAccess2013 25

Page 26: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXP

• SpecifyinganExactMatch– Createaquerythatwilldisplayspecificrecords

• Thistypeofconditionisanexactmatchbecause thevalue inthespecified fieldmustmatchtheconditionexactlyinorder fortherecord tobeincludedinthequeryresults

DefiningRecordSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 26

Page 27: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXP

• ModifyingaQuery– Afteryoucreateaqueryandviewtheresults,youmightneedtomakechangestothequeryiftheresultsarenotwhatyouexpectedorrequire

DefiningRecordSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 27

Page 28: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningRecordSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 28

Page 29: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXP

• UsingaComparisonOperatortoMatchaRangeofValues– Afteryoucreateandsaveaquery,youcandouble-clickthequerynameintheNavigationPanetorunthequeryagain

– ClicktheViewbuttontochangeitsdesign– Youcanalsouseanexistingqueryasthebasisforcreatinganotherquery

DefiningRecordSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 29

Page 30: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningRecordSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 30

Page 31: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningMultipleSelectionCriteriaforQueries

NewPerspectivesonMicrosoftAccess2013 31

• Multipleconditionsrequireyoutouselogicaloperatorstocombinetwoormoreconditions– NeedtousetheAndlogicaloperator

– IfyouplaceconditionsinseparatefieldsinthesameCriteriarowofthedesigngrid,allconditionsinthatrowmustbemetinorderforarecordtobeincludedinthequeryresults

– Ifyouplaceconditionsindifferent Criteriarows,arecordwillbeselectedifatleastoneoftheconditionsismet

– Ifnoneoftheconditionsaremet,norecordsareselected– WhenyouplaceconditionsindifferentCriteriarows,youareusingtheOrlogicaloperator

Page 32: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningMultipleSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 32

Page 33: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningMultipleSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 33

• TheAndLogicalOperator• Inthequerydesign,bothconditionsyouspecifywillappearinthesameCriteriarow;therefore,thequerywillselectrecordsonlyifbothconditionsaremet

Page 34: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPDefiningMultipleSelectionCriteriaforQueries(Cont.)

NewPerspectivesonMicrosoftAccess2013 34

• TheOrLogicalOperator• Inthequerydesign,eitheroneoftwoconditionsissatisfiedorwhenbothconditionsaresatisfied

Page 35: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPChangingaDatasheet’sAppearance

NewPerspectivesonMicrosoftAccess2013 35

• Youcanmakemanyformattingchangestoadatasheettoimproveitsappearanceorreadability– Fonttype,size,color,alignmentoftext,applydifferentcolorstotherowsandcolumns

• ModifyingtheFontSize– Dependingonthesizeofthemonitoryouareusingorthescreenresolution,youmightneedtoincreaseordecreasethesizeofthefonttoviewmoreorfewercolumnsofdata

Page 36: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPChangingaDatasheet’sAppearance(Cont.)

NewPerspectivesonMicrosoftAccess2013 36

• ChangingtheAlternateRowColorinaDatasheet– Accessusesthemestoformattheobjectsinadatabase.Athemeisapredefinedsetofformatsincludingcolors,fonts,andothereffectsthatenhanceanobject’sappearanceandusability• TheOfficetheme,whichformatseveryotherrowinadatasheetwithagraybackgroundcolortodistinguishonerowfromanother,isthedefault

Page 37: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPChangingaDatasheet’sAppearance(Cont.)

NewPerspectivesonMicrosoftAccess2013 37

Page 38: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingaCalculatedField

NewPerspectivesonMicrosoftAccess2013 38

• Queriescanperformcalculations– Mustdefineanexpressioncontainingacombinationofdatabasefields,constants,andoperators

– Acalculatedfieldisafieldthatdisplaystheresultsofanexpressionbutitdoesnotexistinadatabase

– TheZoomboxisadialogboxthatyoucanusetoentertext,expressions,orothervalues

– ExpressionBuilderisanAccesstoolthatmakesiteasyforyoutocreateanexpression• Itcontainsaboxforentering theexpression, anoptionfordisplayingandchoosingcommonoperators, andoneormorelistsofexpression elements, suchastableandfieldnames

Page 39: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingaCalculatedField(Cont.)

NewPerspectivesonMicrosoftAccess2013 39

Page 40: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPCreatingaCalculatedField(Cont.)

NewPerspectivesonMicrosoftAccess2013 40

FormattingaCalculatedFieldYoucanspecifyaparticularformatforacalculated field, justasyoucanforanyfield,bymodifying itsproperties

Page 41: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUsingAggregateFunctions

NewPerspectivesonMicrosoftAccess2013 41

• Youcancalculatestatisticalinformation,suchastotalsandaverages,ontherecordsdisplayedinatabledatasheetorselectedbyaquery– UsetheAccessAggregatefunctionswhichperformarithmeticoperationsonselectedrecordsinadatabase

Page 42: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUsingAggregateFunctions(Cont.)

NewPerspectivesonMicrosoftAccess2013 42

• WorkingwithAggregateFunctionsUsingtheTotalRow– Toquicklyperformacalculationusinganaggregatefunctioninatableorquerydatasheet,youcanusetheTotalsbuttonintheRecordsgroupontheHOMEtab• Whenyouclickthisbutton,arowlabeled“Total”appearsatthebottomofthedatasheet

• Chooseoneoftheaggregatefunctions

Page 43: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUsingAggregateFunctions(Cont.)

NewPerspectivesonMicrosoftAccess2013 43

• CreatingQuerieswithAggregateFunctions– Aggregate functionsoperateontherecords thatmeetaquery’s

selectioncriteria– Youspecifyanaggregate function foraspecificfield,andthe

appropriate operation appliestothatfield’svalues fortheselectedrecords

Page 44: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUsingAggregateFunctions(Cont.)

NewPerspectivesonMicrosoftAccess2013 44

Page 45: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPUsingAggregateFunctions(Cont.)

NewPerspectivesonMicrosoftAccess2013 45

• UsingRecordGroupCalculations– Inaddition tocalculatingstatistical informationonallorselected

records, youcancalculatestatistics forgroupsofrecords– TheGroup Byoperatordivides theselected records intogroupsbased

onthevalues inthespecified field• Those recordswiththesamevalue forthefieldaregroupedtogether, andthedatasheet displaysonerecord foreachgroup

• Aggregate functions,whichappear intheothercolumnsofthedesigngrid,providestatisticalinformationforeachgroup

Page 46: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPWorkingwiththeNavigationPane

NewPerspectivesonMicrosoftAccess2013 46

• TheNavigationPaneisthemainareaforworkingwiththeobjectsina– Provides optionsforgroupingdatabase objectsinvariouswaystosuit

yourneeds– Dividesdatabaseobjects intocategories, andeachcategorycontains

groups– Thedefault category is

ObjectType,whicharrangesobjectsbytype—tables,queries, forms,andreports

– ThedefaultgroupisAllAccessObjects,whichappearsatthetopoftheNavigationPane

Page 47: Tutorial 3 Maintaining and Querying a Databasehome.ku.edu.tr/~mehmetgonen/indr481_fall2015/indr481_fall2015_t… · Datasheet view, you might want to temporarily remove certain fields

XPXPXPWorkingwiththeNavigationPane(Cont.)

NewPerspectivesonMicrosoftAccess2013 47