access form design

Upload: ijunoella28

Post on 10-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Access Form Design

    1/51

    Access Form DesignAccess Form Design

    Technical Support ServicesTechnical Support Services

  • 8/8/2019 Access Form Design

    2/51

    Course DescriptionCourse Description

    This is the fifth in a series of six workshops about Microsoft Access. It dealsThis is the fifth in a series of six workshops about Microsoft Access. It dealsspecifically with form design.specifically with form design.

    The purpose of this installment is to expose you to the possibilities involved inThe purpose of this installment is to expose you to the possibilities involved indesigning your database forms. Form design is time consuming and requires somedesigning your database forms. Form design is time consuming and requires somepatience. Learning the form design process is a considerable portion of the databasepatience. Learning the form design process is a considerable portion of the databasedevelopment process.development process.

    Our goal is to assist you to learn the software, understand some basic concepts andOur goal is to assist you to learn the software, understand some basic concepts andshow you some tips and techniques so you can develop your databaseshow you some tips and techniques so you can develop your databasemanagement/programming skills over time.management/programming skills over time.

    The six workshops are:The six workshops are:

    Introduction to Access Introduction to Access

    Access Queries Access Queries

    Access Reports Access Reports Access Database Design Access Database Design

    Access Form Design Access Form Design

    Access Macros Access Macros

  • 8/8/2019 Access Form Design

    3/51

    Form BasicsForm Basics

    U

    ses of FormsU

    ses of FormsForms created in Microsoft Access are very much likeForms created in Microsoft Access are very much likepaper forms except they have a wider variety ofpaper forms except they have a wider variety offunctions and uses. They can be used to:functions and uses. They can be used to:

    Enter data into the databaseEnter data into the databaseUsing a form for data entry not only saves time, it is aUsing a form for data entry not only saves time, it is a

    way to prevent errors. Values can be selected fromway to prevent errors. Values can be selected frompull down lists thereby reducing the typing time andpull down lists thereby reducing the typing time andinsuring that data entry rules are consistent.insuring that data entry rules are consistent.

    View or browse data in the databaseView or browse data in the database

    A form can be used to view or browse through the dataA form can be used to view or browse through the datafrom a single record in form view or multiple recordsfrom a single record in form view or multiple recordsin tabular or datasheet view.in tabular or datasheet view.

  • 8/8/2019 Access Form Design

    4/51

    Replicate source documentsReplicate source documents

    An Access form can be created that looks exactly like the paper sourceAn Access form can be created that looks exactly like the paper sourcedocument or data collection form. During data entry, the user doesn'tdocument or data collection form. During data entry, the user doesn't

    have to be concerned with finding the exact spot in the table to inserthave to be concerned with finding the exact spot in the table to insertthe data; the form and its table links will position it in the correct tablethe data; the form and its table links will position it in the correct tablefield.field.

    Provide an attractive presentation of dataProvide an attractive presentation of data

    The form can be designed to use a variety of fonts, colors, and specialThe form can be designed to use a variety of fonts, colors, and specialeffects such as shading to enhance its appearance.effects such as shading to enhance its appearance.

    Calculate totalsCalculate totalsThe form can extract raw numbers from a table record, calculate totals orThe form can extract raw numbers from a table record, calculate totals or

    evaluate mathematical expressions, and display the results as a part ofevaluate mathematical expressions, and display the results as a part ofthe form. the form. Hold a chart or pivot tableHold a chart or pivot table

    A form can be used to display data in a graphical format (such as a barA form can be used to display data in a graphical format (such as a barchart or a pie chart) or in a Microsoft Excel pivot table format. Thesechart or a pie chart) or in a Microsoft Excel pivot table format. These

    forms can only be used to display data; they cannot be used for dataforms can only be used to display data; they cannot be used for dataentry.entry.

    Display data from more than one tableDisplay data from more than one table

    The form can be based on a multiple table query instead of a single table.The form can be based on a multiple table query instead of a single table.Using this feature you can access the data in several tablesUsing this feature you can access the data in several tablessimultaneously.simultaneously.

  • 8/8/2019 Access Form Design

    5/51

    Form ObjectsForm Objects

    All of the information on a form is contained in controls. Controls are objects on a formAll of the information on a form is contained in controls. Controls are objects on a formthat are used to display data, perform actions, or decorate the form.that are used to display data, perform actions, or decorate the form.

    Some controls are Some controls are boundbound (linked) to fields in a table or a query. These controls can(linked) to fields in a table or a query. These controls canplace data into the fields or display data from the fields.place data into the fields or display data from the fields.

    Different types of controls or objects are used to display different data types: a Different types of controls or objects are used to display different data types: a texttextboxbox is used to display data and numbers, anis used to display data and numbers, an object boxobject box is used to display pictures,is used to display pictures,and other controls display information that is part of the form design.and other controls display information that is part of the form design.

    LabelsLabels are controls that are used to display descriptive text, whileare controls that are used to display descriptive text, while lineslines andand squaressquaresare controls that are used to organize or separate data.are controls that are used to organize or separate data.

    The The imageimage control is used to enhance the appearance of the form with a logo, clip art,control is used to enhance the appearance of the form with a logo, clip art,or some other graphic file. If you want each database record to have a differentor some other graphic file. If you want each database record to have a differentimage (e.g. employee photographs), then use a bound object control instead.image (e.g. employee photographs), then use a bound object control instead.

    Calculated controlsCalculated controls act like bound controls but are used to display the results of aact like bound controls but are used to display the results of acalculation. Frequently the parameters used in the underlying formula are othercalculation. Frequently the parameters used in the underlying formula are othercontrols on the form.controls on the form.

  • 8/8/2019 Access Form Design

    6/51

    Creation MethodsCreation Methods

    Access contains several ways to create a form. You can design the formAccess contains several ways to create a form. You can design the formyourself by placing controls on a blank grid or you can use one of the builtyourself by placing controls on a blank grid or you can use one of the built--in Wizards. The most common approach is to use a wizard to develop thein Wizards. The most common approach is to use a wizard to develop thebasic design of the form (a rough draft) and then switch to the design viewbasic design of the form (a rough draft) and then switch to the design viewfor form customization.for form customization.

    Build From ScratchBuild From ScratchYou, as the user, can enter controls, labels, and links to the data in theYou, as the user, can enter controls, labels, and links to the data in the

    underlying tables in the design view of a form.underlying tables in the design view of a form.

    Autoform WizardsAutoform Wizards

    Each of the autoform wizards produces a simple preformatted form inEach of the autoform wizards produces a simple preformatted form ineither columnar, tabular, or datasheet format. Each wizard workseither columnar, tabular, or datasheet format. Each wizard works

    automatically, without prompting from the user.automatically, without prompting from the user. Other WizardsOther Wizards

    Other form wizards are available that will produce columnar, tabular,Other form wizards are available that will produce columnar, tabular,datasheet, justified, chart, or pivot table forms. Each wizard prompts thedatasheet, justified, chart, or pivot table forms. Each wizard prompts theuser with a series of questions and bases the form on the answers.user with a series of questions and bases the form on the answers.

  • 8/8/2019 Access Form Design

    7/51

    Sources of DataSources of Data

    When a form is used to enter, update, or displayWhen a form is used to enter, update, or display

    data from a single table, then you can connectdata from a single table, then you can connect

    or link the form directly to the table. However,or link the form directly to the table. However,if the form is to use data from multiple tables,if the form is to use data from multiple tables,

    then the tables should be linked together in athen the tables should be linked together in a

    query and the form based on the query.query and the form based on the query.

  • 8/8/2019 Access Form Design

    8/51

    Microsoft Access forms are generally classified into one of these types:Microsoft Access forms are generally classified into one of these types:

    ColumnarColumnar In a columnar form, the values are all placed in one verticalIn a columnar form, the values are all placed in one verticalcolumn; one item to a line and one record per form. Access will place thecolumn; one item to a line and one record per form. Access will place thedata in newspaper style columns if the number of data items exceeds thedata in newspaper style columns if the number of data items exceeds theform length.form length.

    TabularTabular In a tabular form, the data is placed in rows with field labels atIn a tabular form, the data is placed in rows with field labels atthe top. Multiple records can be displayed on a single form. Tabular formsthe top. Multiple records can be displayed on a single form. Tabular formsare best when you want to display multiple records with relatively feware best when you want to display multiple records with relatively fewfields to prevent the need for left to right scrolling.fields to prevent the need for left to right scrolling.

    DatasheetDatasheet A datasheet form will display multiple records in a typicalA datasheet form will display multiple records in a typicaldatasheet view or single records in a tabular view. This form is used mainlydatasheet view or single records in a tabular view. This form is used mainlyas a subform.as a subform.

    JustifiedJustified Available through the Form Wizard; lays out fields in a staggeredAvailable through the Form Wizard; lays out fields in a staggeredcompact manner.compact manner.

  • 8/8/2019 Access Form Design

    9/51

    Main/SubformMain/Subform

    AA main/subformmain/subform form is used to show a one to manyform is used to show a one to manyrelationship between the main form and the subform. The mainrelationship between the main form and the subform. The main(or one side) is displayed in single column format on the top of(or one side) is displayed in single column format on the top ofthe form while the subform (or many side) is displayed in athe form while the subform (or many side) is displayed in adatasheet format on the bottom of the form. The subform candatasheet format on the bottom of the form. The subform can

    be used to display one or more records that are related to thebe used to display one or more records that are related to themain form. There is a subform wizard button available in themain form. There is a subform wizard button available in theForm Design Toolbox.Form Design Toolbox.

    Linked FormsLinked Forms

    The main form in a linked form set contains a button that branches to orThe main form in a linked form set contains a button that branches to or

    opens another form related to the first. The second form is displayed in itsopens another form related to the first. The second form is displayed in itsown window, generally on top of the first form. Closing the second formown window, generally on top of the first form. Closing the second formreturns control to the main form.returns control to the main form.

  • 8/8/2019 Access Form Design

    10/51

    ChartsCharts

    The chart form displays data as a graph such as aThe chart form displays data as a graph such as a

    bar chart, pie chart, or a column graph. Thebar chart, pie chart, or a column graph. The

    chart cannot be used for data entry.chart cannot be used for data entry.

  • 8/8/2019 Access Form Design

    11/51

    Pivot TablesPivot Tables

    A pivot table lets you summarize large amountsA pivot table lets you summarize large amounts

    of data in spreadsheet form. The pivot tableof data in spreadsheet form. The pivot table

    requires that Microsoft Excel be installed onrequires that Microsoft Excel be installed on

    the computer before the table can be created.the computer before the table can be created.

    Management and editing of the table is doneManagement and editing of the table is done

    with an OLE branch to Excel.with an OLE branch to Excel.

  • 8/8/2019 Access Form Design

    12/51

    Creating FormsCreating Forms

    The general procedure for creating a form is:The general procedure for creating a form is:

    1. In the Database Window, click the1. In the Database Window, click the FormsForms entry in theentry in the ObjectsObjectslistlist

    2. Click on the2. Click on the NewNewbutton in the toolbar to display thebutton in the toolbar to display the NewNew

    FormForm dialog box.dialog box.3. Select the appropriate table or query in the Choose Table or3. Select the appropriate table or query in the Choose Table or

    Query field (click theQuery field (click the poppop--up to display the list ofup to display the list ofavailable tables and queries).available tables and queries).

    4. Select a Wizard or Design View from the list and click the4. Select a Wizard or Design View from the list and click the OKOK

    button.button.If you choose a wizard, follow the instructions in the WizardIf you choose a wizard, follow the instructions in the Wizard

    dialog boxes. Click thedialog boxes. Click the NextNextbutton after each step to continuebutton after each step to continuethrough a Wizard.through a Wizard.

  • 8/8/2019 Access Form Design

    13/51

    Activity 1Activity 1 -- Use an Autoform WizardUse an Autoform Wizard

    Create a form to add or update information in the class table using the TabularCreate a form to add or update information in the class table using the TabularAutoForm Wizard.AutoForm Wizard.

    1. Open the sample database1. Open the sample database SCHOOL4.MDBSCHOOL4.MDBif it is not already open.if it is not already open.

    2. In the2. In the DatabaseDatabase window, click thewindow, click the FormsForms entry in theentry in the ObjectsObjects list.list.

    3. Click3. ClickNewNewbutton in the Database windowbutton in the Database window toolbartoolbar..

    4. Select the4. Select the ClassClass table.table.

    5. Select the5. Select the AutoForm: TabularAutoForm: Tabular format.format.

    6. Click the6. Click the OKOKbutton.button.

    7. The form is created and displayed on screen.7. The form is created and displayed on screen.

    8. To save the form for future use, close it and respond8. To save the form for future use, close it and respond YesYes to theto the SaveSave

    ChangesChanges dialog box. When thedialog box. When the Save AsSave As dialog box appears, name itdialog box appears, name it ClassClassEntryEntry..

  • 8/8/2019 Access Form Design

    14/51

    Activity 2Activity 2 -- Use an Interactive FormUse an Interactive Form

    WizardWizardCreate a columnar form to add or update information in the Teacher table using theCreate a columnar form to add or update information in the Teacher table using theForm Wizard.Form Wizard.

    1. Open the sample database1. Open the sample database SCHOOL4.MDBSCHOOL4.MDBif it is not already open.if it is not already open.

    2. In the2. In the DatabaseDatabase window, click thewindow, click the FormsForms entry in theentry in the ObjectsObjects list.list.

    3. Select the3. Select the TeacherTeacher table.table.

    4. Select the4. Select the Form WizardForm Wizard format and click theformat and click the OKOKbutton.button.5. When the wizard asks which fields to include, click the5. When the wizard asks which fields to include, click the AllAllbutton (marked withbutton (marked with >>>>););

    click theclick the NextNextbutton.button.

    6. Select the6. Select the ColumnarColumnar layout and click thelayout and click the NextNextbutton.button.

    7. Select a style for the form and click the7. Select a style for the form and click the NextNextbutton.button.

    8. Give the form the title8. Give the form the title Teacher RecordsTeacher Records and click theand click the FinishFinishbutton. Note: this titlebutton. Note: this titlewill be used to name the form as it is being saved.will be used to name the form as it is being saved.

    9. Close the form and save any changes if prompted to do so.9. Close the form and save any changes if prompted to do so.Creating forms in the Design View is a little more complicated and requires a more inCreating forms in the Design View is a little more complicated and requires a more in--

    depth discussion of the design screens, options, and tools that are available withindepth discussion of the design screens, options, and tools that are available withinAccess. These items will be covered in the next section.Access. These items will be covered in the next section.

  • 8/8/2019 Access Form Design

    15/51

    Activity 3: Environment overviewActivity 3: Environment overview

    1. Open the Teacher Records form in Design View1. Open the Teacher Records form in Design View

    2. Make sure the ruler, grid, toolbox, and field list are2. Make sure the ruler, grid, toolbox, and field list arevisible.visible.

    3. Move the floating field list to the side if you need to.3. Move the floating field list to the side if you need to.4. Shape your floating toolbox to appear as the one on4. Shape your floating toolbox to appear as the one onpage 9.page 9.

    5. Put your mouse over each tool to see the tool tips5. Put your mouse over each tool to see the tool tipsappear.appear.

    6. Change back and forth between Form view,6. Change back and forth between Form view,Datasheet View, and Design View.Datasheet View, and Design View.

    7. While in Form view, perform a Print Preview.7. While in Form view, perform a Print Preview.

  • 8/8/2019 Access Form Design

    16/51

    Designing a FormDesigning a Form

    Views in the Form WindowViews in the Form Window

    The form window has four possible viewsThe form window has four possible views

    Design viewDesign view

    Design view is used to access the design screen to create a newDesign view is used to access the design screen to create a newform or to change the structure of an existing form.form or to change the structure of an existing form.

    Commands:Commands:

    -- Select form and click Design button in the database windowSelect form and click Design button in the database windowtoolbar.toolbar.

    -- Right mouse click on form and select Design view shortcut.Right mouse click on form and select Design view shortcut.

    -- If form is open in Form view, right mouse click in title barIf form is open in Form view, right mouse click in title barand select theand select the Design ViewDesign View shortcutshortcut

  • 8/8/2019 Access Form Design

    17/51

    Form viewForm view

    Form view is used to enter, change, or view data usingForm view is used to enter, change, or view data usingthe form itself. In form view, you can usually see allthe form itself. In form view, you can usually see allof the fields for one record at once.of the fields for one record at once.

    Commands:Commands:

    -- Select form and clickSelect form and clickOpenOpenbutton in the databasebutton in the databasewindow toolbar.window toolbar.

    -- DoubleDouble--click a form object.click a form object.

    -- Right mouse click on a form object and selectRight mouse click on a form object and select OpenOpen

    shortcut.shortcut.-- If the form is open in Design view, right mouse clickIf the form is open in Design view, right mouse click

    in title bar and select thein title bar and select the Form ViewForm View shortcutshortcut

  • 8/8/2019 Access Form Design

    18/51

    Datasheet viewDatasheet view

    Datasheet view is used to view, enter, orDatasheet view is used to view, enter, orchange data using a datasheet. You can usuallychange data using a datasheet. You can usuallysee many records at once, but it does notsee many records at once, but it does not

    display pictures or other OLE objects.display pictures or other OLE objects. Commands:Commands:

    -- InIn FormForm view, right mouse click in the titleview, right mouse click in the title

    bar and select thebar and select the Datasheet ViewDatasheet View shortcut.shortcut.-- InIn DesignDesign view, right mouse click in the titleview, right mouse click in the titlebar and select thebar and select the Datasheet ViewDatasheet View shortcut.shortcut.

  • 8/8/2019 Access Form Design

    19/51

    Print previewPrint preview

    It is used to see how a form will look whenIt is used to see how a form will look when

    printed.printed.

    Commands:Commands:-- Print previewPrint preview is available from theis available from the FileFile menu.menu.

    -- Click theClick the Print PreviewPrint Previewbutton on the toolbarbutton on the toolbar

  • 8/8/2019 Access Form Design

    20/51

    Inserting Controls into the FormInserting Controls into the Form

    A control on a form is classified by the source ofA control on a form is classified by the source ofthe information that it displays.the information that it displays.

    BoundBound controls are connected or linked to a datacontrols are connected or linked to a datafield in a table or query.field in a table or query.

    UnboundUnbound controls do not have a source of data.controls do not have a source of data.They are used to display labels or instructions.They are used to display labels or instructions.

    CalculatedCalculated controls use an expression as thecontrols use an expression as thecontrol source and display the results of thecontrol source and display the results of theexpression.expression.

  • 8/8/2019 Access Form Design

    21/51

    Control ToolboxControl Toolbox

    The Toolbox is a special type of toolbar that is used to create controls. The toolbox isThe Toolbox is a special type of toolbar that is used to create controls. The toolbox isautomatically displayed when you enter the form design view. You can move theautomatically displayed when you enter the form design view. You can move thetoolbox around the work area by dragging it or you can click on the control box totoolbox around the work area by dragging it or you can click on the control box toclose it.close it.

    When a tool is in use, it is outlined with a small square indicating it is active.When a tool is in use, it is outlined with a small square indicating it is active.

    Option Group:Option Group: if you are going to use this, create it before you create the buttonsif you are going to use this, create it before you create the buttons

    to go inside it. Select the tool and draw the box on your form. Then create optionto go inside it. Select the tool and draw the box on your form. Then create optionbuttons, check boxes, or toggle buttons.buttons, check boxes, or toggle buttons.

    When aWhen a command buttoncommand button is clicked on a form, the button will run a program oris clicked on a form, the button will run a program ormacro or perform some operation such asmacro or perform some operation such asgo to first recordgo to first recordororclose formclose form..

    ToggleButtonsToggleButtons,, Option ButtonsOption Buttons, and, and CheckBoxesCheckBoxes work best for yes/no,work best for yes/no,true/false type variables. When the item is selected, the value is True or 1. When ittrue/false type variables. When the item is selected, the value is True or 1. When itis left blank, the value is False or 0.is left blank, the value is False or 0.

    These buttons can be used as part of an option group to create mutually exclusiveThese buttons can be used as part of an option group to create mutually exclusivechoices. In a group, the first button created will have the value of 1, second button'schoices. In a group, the first button created will have the value of 1, second button'svalue will be 2, etc. 9value will be 2, etc. 9

  • 8/8/2019 Access Form Design

    22/51

  • 8/8/2019 Access Form Design

    23/51

    Alternatively, you canAlternatively, you can create the control using the toolboxcreate the control using the toolbox andandthen assign the field name in the controls property sheet.then assign the field name in the controls property sheet.

    1. Open the form in design view. For a new form, specify the1. Open the form in design view. For a new form, specify thetable or query that is to be connected to the form.table or query that is to be connected to the form.

    2. Select the control from the toolbox and position it on the form.2. Select the control from the toolbox and position it on the form.

    3. Click on the control with the right mouse button and choose3. Click on the control with the right mouse button and choosePropertiesProperties, or double, or double--click on the control and selectclick on the control and selectProperties, or click on the control to select it and then click onProperties, or click on the control to select it and then click on

    theP

    roperties button.theP

    roperties button.4. Select the4. Select the Control SourceControl Sourceproperty and select the field fromproperty and select the field fromthe pull down menu.the pull down menu.

  • 8/8/2019 Access Form Design

    24/51

    Activity 4: Toolbox overviewActivity 4: Toolbox overview

    1. Open the Teacher Records form in Design View if it is not still1. Open the Teacher Records form in Design View if it is not stillopenopen

    2. Drag a field from the field list onto the form.2. Drag a field from the field list onto the form.

    3. Use the Text tool to add some text to the form.3. Use the Text tool to add some text to the form.

    4. Use the Text Box tool to add an unbound field to the form.4. Use the Text Box tool to add an unbound field to the form.

    5. Practice using the utility functions listed on the next page:5. Practice using the utility functions listed on the next page:select, move, resizeselect, move, resize

    During the design process, controls may need some minorDuring the design process, controls may need some minor

    changes in their size or position. The process of selecting,changes in their size or position. The process of selecting,moving, sizing, or copying is the same for all types of controlsmoving, sizing, or copying is the same for all types of controlson both forms and reports.on both forms and reports.

  • 8/8/2019 Access Form Design

    25/51

    SelectingSelecting

    You can select a control by clicking on it with the mouse button. To select several controls,You can select a control by clicking on it with the mouse button. To select several controls,hold down the Shift key while clicking on the objects. You also use a "marquee" (with thehold down the Shift key while clicking on the objects. You also use a "marquee" (with thepointer tool selected, draw a box around the objects) to select multiple objects. The selectedpointer tool selected, draw a box around the objects) to select multiple objects. The selecteditem(s) will have sizing handles around the edges.item(s) will have sizing handles around the edges.

    Moving a controlMoving a control

    Click on the control when the cursor looks like a flat hand and drag it to a new location.

    Click on the control when the cursor looks like a flat hand and drag it to a new location.

    Moving a label or data boxMoving a label or data box

    To move a label or data box separately, click on the larger square in the upper left corner of theTo move a label or data box separately, click on the larger square in the upper left corner of theobject and drag & drop while the cursor looks like a pointing finger.object and drag & drop while the cursor looks like a pointing finger.

    Resizing a label or data boxResizing a label or data box

    Position the cursor over one of the square boxes (sizing handles) and it will change into a doublePosition the cursor over one of the square boxes (sizing handles) and it will change into a doublearrow. Drag and drop this arrow cursor to change the size of the control.arrow. Drag and drop this arrow cursor to change the size of the control.

    Copying and deletingCopying and deleting

    Select the control and choose theSelect the control and choose the DuplicateDuplicate command from thecommand from the EditEdit menu to obtain a duplicate ofmenu to obtain a duplicate ofthe control directly below the original. You can also select the control and use the standardthe control directly below the original. You can also select the control and use the standardCut, Copy, and Paste commands, or you can press the Delete key to remove the selectedCut, Copy, and Paste commands, or you can press the Delete key to remove the selectedcontrol(s).control(s).

  • 8/8/2019 Access Form Design

    26/51

    Activity5Activity5 -- Creating and Modifying a FormCreating and Modifying a Form

    without a Wizardwithout a Wizard

    1. In the1. In the DatabaseDatabase window, click thewindow, click the FormsForms entry in theentry in the ObjectsObjectslist.list.

    2. Click the2. Click the NewNewbutton in the toolbar. Select thebutton in the toolbar. Select the Design ViewDesign Viewoption.option.

    3. Select the3. Select the STUDENTSTUDENTtable. Click thetable. Click the OKOKbutton.button.

    4. Make sure the toolbox, ruler, field list, and grid are displayed.4. Make sure the toolbox, ruler, field list, and grid are displayed.

    Use the View menu to turn these display options on / off. Use the View menu to turn these display options on / off.

    5. Establish the size of your form. Make it 4 inches across and 2.55. Establish the size of your form. Make it 4 inches across and 2.5

    inches deep.inches deep. Drag & drop the pages edges to change its size. Drag & drop the pages edges to change its size.

  • 8/8/2019 Access Form Design

    27/51

    6. Put 3 text box controls on your form.6. Put 3 text box controls on your form.

    Open the Field list (View menu), then drag & drop S Open the Field list (View menu), then drag & drop S--FName, SFName, S--LName, and SLName, and S--ScoreScorefrom the field list box to your form.from the field list box to your form.

    7. Position the fields on the form (drag while the cursor looks like a hand).7. Position the fields on the form (drag while the cursor looks like a hand).

    8. Make at least one of the data boxes wider (click on a white box to select it, drag &8. Make at least one of the data boxes wider (click on a white box to select it, drag &drop a black square resizing handle).drop a black square resizing handle).

    9. Move a label in relation to its data box (click on the big square in the upper left9. Move a label in relation to its data box (click on the big square in the upper leftcorner).corner).

    10. Save your form by clicking on the10. Save your form by clicking on the SaveSavebutton.button.

    11. Change the11. Change the backgroundbackground color:color:

    Right mouse click on the background area and choose the Right mouse click on the background area and choose the PropertiesProperties shortcut.shortcut. Click the Click the FormatFormat tab and then click in thetab and then click in the Back ColorBack Color field.field.

    Click the 3 dots (...) and select a color from the dialog box. Click the 3 dots (...) and select a color from the dialog box.

    Click the Click the OKOKbutton and close the properties dialog box.button and close the properties dialog box.

    12. Change a label text color12. Change a label text color

    Right mouse click on a label and choose the Right mouse click on a label and choose the PropertiesProperties shortcut.shortcut.

    Click the Click the FormatFormat tab, scroll down click in thetab, scroll down click in the Fore ColorFore Color field.field.

    Click the 3 dots (...) and select a color from the dialog box. Click the 3 dots (...) and select a color from the dialog box.

    Change other characteristics (font, style) of the text as desired. Change other characteristics (font, style) of the text as desired.

    Close the properties dialog box. Close the properties dialog box.

    13. Save your form again.13. Save your form again.

    Keep this form open, we will add other controls to it as we work through this section.Keep this form open, we will add other controls to it as we work through this section.

  • 8/8/2019 Access Form Design

    28/51

    Form SectionsForm Sections

    Microsoft Access forms can have up to five sections that can be entered in any combination. It is possible toMicrosoft Access forms can have up to five sections that can be entered in any combination. It is possible tohave different sections for different views of the formhave different sections for different views of the form

    Microsoft Access forms can have up to five sections that can be entered in any combination. It is possible toMicrosoft Access forms can have up to five sections that can be entered in any combination. It is possible tohave different sections for different views of the formhave different sections for different views of the form

    Form HeaderForm Header

    The form header displays a title for the form along with control buttons and/or instructions. In form view, theThe form header displays a title for the form along with control buttons and/or instructions. In form view, theheader appears at the top of the screen. When printed, the header appears at the top of the first page. Theheader appears at the top of the screen. When printed, the header appears at the top of the first page. Theheader is not used in datasheet view.header is not used in datasheet view.

    Page HeaderPage Header

    The page header is only used on printed forms and appears at the top of each page. It is used to display titles,The page header is only used on printed forms and appears at the top of each page. It is used to display titles,column headers, and other information.column headers, and other information.

    Detail SectionDetail Section

    The detail section is used to display records of data. It will display one or more records on a single screen orThe detail section is used to display records of data. It will display one or more records on a single screen orpage.page.

    Page FooterPage Footer

    The page footer is only used on printed forms and it appears at the bottom of each page. It is used to display dataThe page footer is only used on printed forms and it appears at the bottom of each page. It is used to display data

    like the page number or date.like the page number or date. Form FooterForm Footer

    The form footer appears at the bottom of the screen in form view and at the end of the printout when the form isThe form footer appears at the bottom of the screen in form view and at the end of the printout when the form isprinted. It is not used in the datasheet view.printed. It is not used in the datasheet view.

  • 8/8/2019 Access Form Design

    29/51

    Notes on using the form sectionsNotes on using the form sections

    The size of a section can be changed byThe size of a section can be changed bydragging the edges in design view.dragging the edges in design view.

    To add or remove sections to a form, chooseTo add or remove sections to a form, choose

    Form Header/Footer orPage Header/FooterForm Header/Footer orPage Header/Footerfrom the View menu in design view.from the View menu in design view.

    Like other objects in the database, formLike other objects in the database, form

    sections have properties. In design view, rightsections have properties. In design view, rightclick on the section or select View / Propertiesclick on the section or select View / Propertiesfrom the menu to access the properties.from the menu to access the properties.

  • 8/8/2019 Access Form Design

    30/51

    1. Open your Student Form created in the previous1. Open your Student Form created in the previousactivity.activity.

    2. Go to the2. Go to the ViewView menu and selectmenu and select Form Header andForm Header and

    FooterFooter..3. Use the Label tool to insert some text into the Form3. Use the Label tool to insert some text into the Form

    Header.Header.

    4. Modify the text's location and appearance if4. Modify the text's location and appearance if

    necessary.necessary.5. Adjust the size of your header.5. Adjust the size of your header.

    6. Save and view your form6. Save and view your form

    Activity 6Activity 6 -- Add a header to your formAdd a header to your form

  • 8/8/2019 Access Form Design

    31/51

    Setting control propertiesSetting control properties

    Throughout Access, properties are used to determine the look or characteristicsThroughout Access, properties are used to determine the look or characteristicsof objects. Controls on forms also have properties that can be used toof objects. Controls on forms also have properties that can be used tochange the structure, appearance, and contents of the control.change the structure, appearance, and contents of the control.

    Control property sheet:Control property sheet:

    To see the control property sheet, right click or double click on the control.To see the control property sheet, right click or double click on the control.

    You can also select the control then click on the properties button. NoteYou can also select the control then click on the properties button. Notethat if the control has an attached label, it has a separate set of properties.that if the control has an attached label, it has a separate set of properties.

    Changing several controlsChanging several controls

    You can change the properties of several controls at once by displaying theYou can change the properties of several controls at once by displaying theproperty sheet for one control then select additional controls of the sameproperty sheet for one control then select additional controls of the sametype (hold down the shift key and click on the other controls).type (hold down the shift key and click on the other controls).

    Changing default propertiesChanging default propertiesYou can change the default properties for a type of control by displaying theYou can change the default properties for a type of control by displaying the

    property sheet for one control and then click on the tool type in the toolbox.property sheet for one control and then click on the tool type in the toolbox.Access will display the default properties for that type of control.Access will display the default properties for that type of control.

  • 8/8/2019 Access Form Design

    32/51

  • 8/8/2019 Access Form Design

    33/51

    A bound control will inherit the lookup, format,A bound control will inherit the lookup, format,

    input mask, caption, default value, validationinput mask, caption, default value, validation

    rule, validation text, and decimal placesrule, validation text, and decimal places

    properties from the underlying table fields.properties from the underlying table fields.

    However, the validation rule, validation text,However, the validation rule, validation text,

    and default value settings will not appear in theand default value settings will not appear in the

    property sheet for the form. Any entries madeproperty sheet for the form. Any entries madein the property sheet will override or append toin the property sheet will override or append to

    these properties.these properties.

  • 8/8/2019 Access Form Design

    34/51

    Customizing the FormCustomizing the FormAccess offers a wide variety of controls that can be used to make your formAccess offers a wide variety of controls that can be used to make your form

    easier to use and more visually appealing. Some of the more common oreasier to use and more visually appealing. Some of the more common oruseful controls are:useful controls are:

    Using a list box or combo box:Using a list box or combo box:

    A list box allows you to make choices from a simple list of values. A comboA list box allows you to make choices from a simple list of values. A combobox is like a list box and a text box in one control; you can choose from thebox is like a list box and a text box in one control; you can choose from theitems in the list or type in your own item like a text box. In either case, theitems in the list or type in your own item like a text box. In either case, the

    list can be field values from a table or query or it can be values entered intolist can be field values from a table or query or it can be values entered intoa value list.a value list.

    1. From the1. From the ViewView menu, turn off themenu, turn off the Control WizardControl Wizard if you plan to create aif you plan to create alist box.list box.

    2. In the toolbox, select either the2. In the toolbox, select either the List BoxList Box or theor the Combo BoxCombo Box..

    3. Click and drag (draw a box) on the form where you want to place the3. Click and drag (draw a box) on the form where you want to place the

    control.control.4. Set the4. Set the Control SourceControl Sourceproperty of the box to bind it to the desired field.property of the box to bind it to the desired field.

    5. Set the5. Set the RowSourceTypeRowSourceTypeproperty to indicate what type of data should beproperty to indicate what type of data should bedisplayed in the control.displayed in the control.

    6. Set the6. Set the RowSourceRowSourceproperty to indicate the source of the data. Whenproperty to indicate the source of the data. Whencreating a list of values, place them in thecreating a list of values, place them in the RowSourceRowSourceproperty separatedproperty separated

    by semicolons.by semicolons.

  • 8/8/2019 Access Form Design

    35/51

    Activity 7Activity 7 -- Add a Combo Box and a List Box toAdd a Combo Box and a List Box to

    your Student Formyour Student Form1. Make sure the1. Make sure the Control WizardControl Wizardbutton is pushed in (active).button is pushed in (active).2. Click on the2. Click on the Combo BoxCombo Box tool and draw a thin box on your form.tool and draw a thin box on your form.

    3. Answer the Wizard's questions: you will supply the values (for major);3. Answer the Wizard's questions: you will supply the values (for major);

    choosechoose SS--MajorMajor; etc.; etc.

    4. Move the combo box label over top of the data portion.4. Move the combo box label over top of the data portion.

    5. Now turn5. Now turn offoffthe Control Wizard.the Control Wizard.

    6. Click on the6. Click on the List BoxList Box tool and draw a box on your form.tool and draw a box on your form.

    7. Click on the7. Click on the PropertiesPropertiesbutton to display current properties for this control.button to display current properties for this control.

    8. Click on the Data tab and set8. Click on the Data tab and set Control SourceControl Source to the desired field:to the desired field: SS--HairHair..

    9. Under the Data tab, set9. Under the Data tab, set Row Source TypeRow Source Type to be:to be: Value ListValue List..

    10. Next to Row Source, enter: red; blonde; brown; black; random; bald;10. Next to Row Source, enter: red; blonde; brown; black; random; bald;

    purple.purple.11. Close the Properties box. Move or resize your list box control as needed.11. Close the Properties box. Move or resize your list box control as needed.Save your form.Save your form.

  • 8/8/2019 Access Form Design

    36/51

    Check Boxes, Option, and ToggleCheck Boxes, Option, and Toggle

    Buttons:Buttons:Use the check box, option button, or toggle button controls as stand aloneUse the check box, option button, or toggle button controls as stand alone

    controls to set Yes/No values. When selected, these controls indicate a Yescontrols to set Yes/No values. When selected, these controls indicate a Yesor True condition. When cleared, they indicate a No or False value.or True condition. When cleared, they indicate a No or False value.

    A check box appears checked when selected and unchecked when cleared.A check box appears checked when selected and unchecked when cleared.

    An option button contains a dot when selected and is empty when cleared.An option button contains a dot when selected and is empty when cleared.

    A toggle button appears down when selected and up when cleared.A toggle button appears down when selected and up when cleared.

    Note:Note: These controls are most useful when bound to a Yes/No field. To speedThese controls are most useful when bound to a Yes/No field. To speeddata entry, use the control's DefaultValue property to make the mostdata entry, use the control's DefaultValue property to make the mostcommon choice the default.common choice the default.

  • 8/8/2019 Access Form Design

    37/51

    Option GroupsOption Groups

    You can use a group of option controls to present a limited set ofYou can use a group of option controls to present a limited set ofalternatives. An option group consists of a group frame thatalternatives. An option group consists of a group frame thatcontains a set of check boxes, option buttons, or togglecontains a set of check boxes, option buttons, or toggle

    buttons. Only one option in a group can be selected at a timebuttons. Only one option in a group can be selected at a time

    (mutually exclusive choices). One value in the group can be(mutually exclusive choices). One value in the group can beset as the default. Option controls used in a group haveset as the default. Option controls used in a group havedifferent properties from those used stand alone. In a group,different properties from those used stand alone. In a group,each option has itseach option has its Option ValueOption Valueproperty set to a number thatproperty set to a number thatindicates its value in the bound field. The group frame, whichindicates its value in the bound field. The group frame, which

    must be created first, is bound to the table field.must be created first, is bound to the table field. Option ValueOption Valueproperties, which can only be set to numbers, not text, are theproperties, which can only be set to numbers, not text, are thevalues that are placed in the bound field when that option isvalues that are placed in the bound field when that option isselected.selected.

  • 8/8/2019 Access Form Design

    38/51

    Activity 8 Create a Check Box for Paid and an OptionActivity 8 Create a Check Box for Paid and an Option

    Group for GenderGroup for Gender

    1. Select the1. Select the CheckBoxCheckBox tool and click on your form.tool and click on your form.

    2. Select the control and bring up its2. Select the control and bring up its PropertiesProperties..

    3. Under the Data tab, select3. Under the Data tab, select PaidPaid as theas the Control SourceControl Source field.field.

    4. Close the4. Close the PropertiesPropertiesbox.box.

    5. Edit the label to say:5. Edit the label to say: Paid FeesPaid Fees..

    6. Make sure the6. Make sure the Control WizardControl Wizard is active (button looks pushed in).is active (button looks pushed in).

    7. Click on the7. Click on the Option GroupOption Group tool and draw a control box on your form.tool and draw a control box on your form.8. The Wizard starts asking you questions:8. The Wizard starts asking you questions:

    Label names: type Label names: type FemaleFemale in the first row, press Tab, and typein the first row, press Tab, and type MaleMale in the second row [next].in the second row [next].

    You You do notdo not want a default choicewant a default choice -- click theclick the NextNextbutton.button.

    Use the default values of 1 and 2 Use the default values of 1 and 2 -- click theclick the NextNextbutton.button.

    Store the value in Store the value in SS--GenderGender (click in the second choice and select S(click in the second choice and select S--Gender from the list)Gender from the list) --click theclick the NextNextbutton.button.

    Choose Choose Option buttonsOption buttons and pick a style of your choice for the group itselfand pick a style of your choice for the group itself -- click theclick the NextNextbutton.button.

    Specify Specify GenderGender as the caption and click theas the caption and click the FinishFinishbutton.button.

    9. Move and/or resize your 2 new controls as needed.9. Move and/or resize your 2 new controls as needed.

    10. Save your form.10. Save your form.

  • 8/8/2019 Access Form Design

    39/51

    Command ButtonsCommand Buttons

    A command button is placed on a form to initiate anA command button is placed on a form to initiate anaction. To make a command button do something,action. To make a command button do something,you need to write a macro or code module. Theyou need to write a macro or code module. Thecommand button wizard will create some commoncommand button wizard will create some common

    buttons for you and will create the underlying Accessbuttons for you and will create the underlying AccessVisual BasicVisual Basic event code.event code.

    1. From the toolbox, select1. From the toolbox, select Control WizardsControl Wizards..

    2. In the toolbox, click on the command button.2. In the toolbox, click on the command button.

    3. Click on the form where you want the button placed.3. Click on the form where you want the button placed.Access will display the wizard dialog box.Access will display the wizard dialog box.

    4. Follow the directions in the dialog box to create the4. Follow the directions in the dialog box to create theevent code.event code.

  • 8/8/2019 Access Form Design

    40/51

    Page BreaksPage Breaks

    A page is defined as a screen in Form View or aA page is defined as a screen in Form View or a

    physical page on a printed form or report. Thephysical page on a printed form or report. The

    Page Up and Page Down keys are used toPage Up and Page Down keys are used to

    move past page breaks. Page breaks aremove past page breaks. Page breaks are

    created by selecting the Page Break tool fromcreated by selecting the Page Break tool from

    the toolbox and clicking on the form or reportthe toolbox and clicking on the form or report

    where you wish the page break to appear.where you wish the page break to appear.

  • 8/8/2019 Access Form Design

    41/51

    NotesNotes

    A page break is active in Form View onlyA page break is active in Form View only

    when the DefaultView property is set to Singlewhen the DefaultView property is set to Single

    Form.Form.

    To size a form's window so that it shows onlyTo size a form's window so that it shows only

    one page, choose Size To Fit Form from theone page, choose Size To Fit Form from the

    Window menu in Form View.Window menu in Form View.

  • 8/8/2019 Access Form Design

    42/51

    Special Design EffectsSpecial Design Effects Access contains a number of design tools on the Format toolbar and in theAccess contains a number of design tools on the Format toolbar and in the

    Toolbox that can add color, shading, lines, or fonts to the form to enhanceToolbox that can add color, shading, lines, or fonts to the form to enhanceits appearance.its appearance.

    Three dimensional appearances for controls can be created by creating theThree dimensional appearances for controls can be created by creating thecontrol, then selecting an option from the formatting tool bar.control, then selecting an option from the formatting tool bar.

    FontsFonts on a control can be changed by selecting the control and altering theon a control can be changed by selecting the control and altering thefont information on the formatting toolbar. You can also select thefont information on the formatting toolbar. You can also select the

    alignment buttons on the toolbar to position the text on the control or thealignment buttons on the toolbar to position the text on the control or theattribute buttons to boldface, italicize, or underline textattribute buttons to boldface, italicize, or underline text

    ColorsColors (background, foreground, or border) and(background, foreground, or border) and BordersBorders can be set fromcan be set fromthe formatting toolbar. Form controls can also be sculptured from thethe formatting toolbar. Form controls can also be sculptured from therightmost button on the form design toolbar.rightmost button on the form design toolbar.

    TheThe RectangleRectangle andand LineLine tools in the toolbox can be used to add emphasistools in the toolbox can be used to add emphasisto important information or to isolate sections of the form.to important information or to isolate sections of the form.

    ObjectsObjects (photos, graphics, etc) can be placed in a form by creating a box(photos, graphics, etc) can be placed in a form by creating a boxwith anwith an ImageImage tool or antool or an Unbound Object FrameUnbound Object Frame tool from the toolbox. Iftool from the toolbox. Ifyou want different objects for different records, then you must link theyou want different objects for different records, then you must link theobject to a field in the underlying table or query.object to a field in the underlying table or query.

  • 8/8/2019 Access Form Design

    43/51

    Calculated controlsCalculated controls

    A calculated control uses an expression as its control source. TheA calculated control uses an expression as its control source. Theexpression can include values from data fields, other controls,expression can include values from data fields, other controls,or constants. Access does not store the result of the expression,or constants. Access does not store the result of the expression,it recalculates it every time the form is displayed. Precede theit recalculates it every time the form is displayed. Precede theexpression with an equal (expression with an equal (==) sign when it is placed in the) sign when it is placed in the

    control source property.control source property.The expression can be typed directly into the property settingThe expression can be typed directly into the property setting

    area or it can be created in the expression builder. The builderarea or it can be created in the expression builder. The buildercan be activated by clicking on thecan be activated by clicking on the Build (...)Build (...) Button.Button.

    If you are entering the expression directly in the Control SourceIf you are entering the expression directly in the Control Source

    box, press Shift F2 (zoom) if you need more room to see whatbox, press Shift F2 (zoom) if you need more room to see whatyou're typing. Click on OK when you're done.you're typing. Click on OK when you're done.

  • 8/8/2019 Access Form Design

    44/51

    Activity 9Activity 9 -- Create a Calculated Control toCreate a Calculated Control to

    compute student's agecompute student's age

    1. Create an unbound text box control on your form.1. Create an unbound text box control on your form.

    2. Change the label to say:2. Change the label to say: AgeAge

    3. Click on the data portion of the new unbound control3. Click on the data portion of the new unbound controland bring up itsand bring up its PropertiesProperties..

    4. Click on the4. Click on the DataData tab.tab.

    5. Next to Control Source, press5. Next to Control Source, press Shift F2Shift F2 to zoom.to zoom.

    6. Type6. Type =Cint((Now()=Cint((Now()--[S[S--BDay])/365)BDay])/365) and click theand click theOKOKbutton.button.

    7. Close the Properties box and switch to7. Close the Properties box and switch to FormForm view toview toreview your results.review your results.

    8.8. SaveSave your form.your form.

  • 8/8/2019 Access Form Design

    45/51

    SubformsSubforms

    A subform is simply a form within a form. The ControlA subform is simply a form within a form. The Controlwizard has the ability to walk you through thewizard has the ability to walk you through thecreation procedure:creation procedure:

    1. In the1. In the DesignDesign view of the form, select theview of the form, select the ControlControl

    WizardWizardbutton from the toolbox.button from the toolbox.2. Click on the2. Click on the Subform/SubreportSubform/Subreport toolbox button.toolbox button.

    3. Click and drag a rectangle on the form where the3. Click and drag a rectangle on the form where thesubform is to appear. The wizard will activate whensubform is to appear. The wizard will activate when

    the rectangle is complete.the rectangle is complete.4. Respond to the questions posed by the wizard to4. Respond to the questions posed by the wizard to

    complete the procedurecomplete the procedure

  • 8/8/2019 Access Form Design

    46/51

    Activity 10: Create a Query and aActivity 10: Create a Query and a

    SubformSubform1. Switch to the Queries tab and create a new query in design1. Switch to the Queries tab and create a new query in design

    view.view.

    2. Include these three tables: Class, Attend, Student2. Include these three tables: Class, Attend, Student

    3. Include these fields: S3. Include these fields: S--ID from the Student table, CID from the Student table, C--Name,Name,

    Grade and StatusGrade and Status4. Save the query as StudentAttend4. Save the query as StudentAttend

    5. Return to your Student form in design mode. Drag the bottom5. Return to your Student form in design mode. Drag the bottomof the form down to get some more room.of the form down to get some more room.

    6. Make sure the Wizard button is selected.6. Make sure the Wizard button is selected.

    7. Click on the Form/Subform button and drag a box on top of7. Click on the Form/Subform button and drag a box on top ofyour form.your form.

    8. Wizard responses: Use existing query "StudentAttend". Select8. Wizard responses: Use existing query "StudentAttend". Selectall fields. Show StudentAttend for each record in Student.all fields. Show StudentAttend for each record in Student.

  • 8/8/2019 Access Form Design

    47/51

    Data Management in FormsData Management in Forms

    While working in the form view, some of theWhile working in the form view, some of the

    common data management features, such ascommon data management features, such as

    sortingsorting andand filteringfiltering, are available by right, are available by right--

    clicking on the desired field and selecting fromclicking on the desired field and selecting from

    the shortcut menu that appears. An option alsothe shortcut menu that appears. An option also

    exists to remove the filter or sort and restoreexists to remove the filter or sort and restore

    the data to its original order. You can also usethe data to its original order. You can also usethethe FindFind command (Edit>Find orCtrl F).command (Edit>Find orCtrl F).

  • 8/8/2019 Access Form Design

    48/51

    Activity 11: Filter, Sort, FindActivity 11: Filter, Sort, Find

    1. Apply a filter to display only Journalism1. Apply a filter to display only Journalismmajors. Browse through the filtered records.majors. Browse through the filtered records.Remove the filter.Remove the filter.

    2. Sort the records by last name.2. Sort the records by last name.

    3. Sort the records by test score, with the highest3. Sort the records by test score, with the highestscore being displayed first.score being displayed first.

    4. Find a student whose last name begins with4. Find a student whose last name begins withM. (hint: use an advanced Filter and a wildcardM. (hint: use an advanced Filter and a wildcardin the criteria). Remove the filter.in the criteria). Remove the filter.

  • 8/8/2019 Access Form Design

    49/51

    Create A Switchboard FormCreate A Switchboard Form

    When you use the Database Wizard to create a database, the wizard creates aWhen you use the Database Wizard to create a database, the wizard creates aswitchboard that makes it easy to navigate between the forms and reports in yourswitchboard that makes it easy to navigate between the forms and reports in yourdatabase. If you want to build the same type of switchboard for a database youdatabase. If you want to build the same type of switchboard for a database youcreated yourself, you can use the Switchboard Manager.created yourself, you can use the Switchboard Manager.

    1. On the1. On the ToolsTools menu, point tomenu, point to Database UtilitiesDatabase Utilities, and then click, and then clickSwitchboardSwitchboardManagerManager..

    2. If Microsoft Access asks if you'd like to create a switchboard, click2. If Microsoft Access asks if you'd like to create a switchboard, clickYesYes..3. In the3. In the Switchboard ManagerSwitchboard Managerdialog box, click thedialog box, click the EditEditbutton to edit the defaultbutton to edit the default

    Main switchboard.Main switchboard.

    4. In the4. In the EditSwitchboard PageEditSwitchboard Page dialog box, click ondialog box, click on NewNew to add a new item to the listto add a new item to the listof possible actions.of possible actions.

    5. In the5. In the EditSwitchboardItemEditSwitchboardItem dialog box, type the text for the first switchboarddialog box, type the text for the first switchboardbutton in the Text box, and then choose a command in the Command box.button in the Text box, and then choose a command in the Command box.

    6. Depending on which command you click, Microsoft Access displays another box6. Depending on which command you click, Microsoft Access displays another boxbelow the Command box. Click an item in this box, if necessary. For example, ifbelow the Command box. Click an item in this box, if necessary. For example, ifyou choseyou chose Open Form In Edit ModeOpen Form In Edit Mode in the Command box in step 5, click thein the Command box in step 5, click thename of the form you want to open in the Form box, such asname of the form you want to open in the Form box, such as STUDENT FormSTUDENT Form,,and then click theand then click the OKOKbutton.button.

  • 8/8/2019 Access Form Design

    50/51

    7. Repeat steps 4 through 6 until you've added all the items to the7. Repeat steps 4 through 6 until you've added all the items to theswitchboard. If you want to edit or delete an item, click theswitchboard. If you want to edit or delete an item, click theitem in theitem in the Items On This SwitchboardItems On This Switchboardbox, and then clickbox, and then click

    EditEdit ororDeleteDelete. If you want to rearrange items, click the item. If you want to rearrange items, click the itemin the box, and then clickin the box, and then clickMove UpMove Up ororMove DownMove Down..

    8. Click8. ClickCloseClose..

    9. Look for your Switchboard under the Forms tab.9. Look for your Switchboard under the Forms tab.

    10. You can edit it in design view to change the text, colors, etc.10. You can edit it in design view to change the text, colors, etc.

    Be careful: do not edit or delete the Switchboard table whichBe careful: do not edit or delete the Switchboard table whichcontrols your options on this form.controls your options on this form.

    11. You can make the Switchboard open automatically when the11. You can make the Switchboard open automatically when thedatabase is opened can (and optionally make it the only waydatabase is opened can (and optionally make it the only wayinto the database objects) by going to theinto the database objects) by going to the ToolsTools menu andmenu and

    selectingselecting StartupStartup..12. Change12. Change Display FormDisplay Form toto SwitchboardSwitchboard..

    13. Uncheck13. UncheckDisplay Database WindowDisplay Database Window if you don't want otherif you don't want otherusers to see it.users to see it.

  • 8/8/2019 Access Form Design

    51/51

    Thank You!!!Thank You!!!

    SY 2010SY 2010--20112011This Slide was Prepared by the AimThis Slide was Prepared by the Aim--Aop IIAop II--A Group IIA Group II

    Member List:Member List:

    HomerCruzHomerCruz Maricar SabadoMaricar Sabado

    Donna Lyza PringDonna Lyza Pring Katrin GimpayaKatrin GimpayaAira BabatioAira Babatio Juvy Ann MalitJuvy Ann Malit

    Justin GarciaJustin Garcia Roldan Remy LopezRoldan Remy Lopez

    Arjan EbuengaArjan Ebuenga Dale Myron De LeonDale Myron De Leon

    Jan Kris Vergel De DiosJan Kris Vergel De Dios Vanessa April OrainVanessa April Orain

    Paulo SerranoPaulo Serrano