490 likes | 726 Views
Access 2010 Level 2 Unit 1 Advanced Tables, Relationships, Queries, and Forms Chapter 4 Creating and Using Custom Forms. Creating and Using Custom Forms. Quick Links to Presentation Contents. Create Custom Forms Using Design View CHECKPOINT 1 Add Calculations to a Form in Design View
E N D
Access 2010 Level 2 Unit 1 Advanced Tables, Relationships, Queries, and Forms Chapter 4 Creating and Using Custom Forms
Creating and Using Custom Forms Quick Links to Presentation Contents • Create Custom Forms Using Design View • CHECKPOINT 1 • Add Calculations to a Form in Design View • Adjust Objects for Consistency in Appearance • Add Graphics to a Form in Design View • Anchor Controls to a Form • Create a Datasheet Form and Restrict Form Actions • Create a Form Using the Blank Form Tool • Sort and Find Records in Forms • CHECKPOINT 2
Create Custom Forms Using Design View To start a new form in Design view: • Click the Create tab. • Click the Form Design button in the Forms group. Form Design View
Create Custom Forms Using Design View…continued • Objects are added to the form using buttons in the Controls, Header/Footer, and Tools groups in the Form Design Tools Design tab (shown below). Form Design Tools Design tab
Create Custom Forms Using Design View…continued • A control object in a form is bound, unbound, or calculated. • A bound control object draws its data from the field in the table to which it is associated. • An unbound control object is used to display text or graphics and does not rely on the table for itscontent. • A calculated control object displays the result of a mathematical formula.
Create Custom Forms Using Design View…continued To add a form title: • Open the form in Design view. • Click the Title button in the Header/Footer group of the Form Design Tools Design tab. • Type the title text. • Press Enter. title text
Create Custom Forms Using Design View…continued To add a label object: • Open the form in Design view. • Click the Label button in the Controls group in the Form Design Tools Design tab. • Drag to create the object with the desired height and width. • Type the label text. • Press Enter. label object
Create Custom Forms Using Design View…continued To center a title object: • Select the title object. • Click the Form Design Tools Format tab. • Click the Center button in the Font group. Center button
Create Custom Forms Using Design View…continued • The Form Header section is used to create a headerthat will display at the top of the form as you scroll through records in Form view. A form header also prints at the top of the page when you print a record or group of records from Form view. • The Form Footer section is used to create a footerthat will display at the bottom of the form as you scroll through records in Form view. A form footer also prints at the end of a printout when you print a record or group of records from Form view.
Create Custom Forms Using Design View…continued To connect a table to aform: • Open the form in Design view. • Double-click the Form Selector button. continues on next slide… Form Selector button
Create Custom Forms Using Design View…continued • Click the Data tab in the Property Sheet. • Click the down-pointing arrow in the Record Source property box. • Click the desired table at the drop-down list. • Close the Property Sheet. Record Source property box
Create Custom Forms Using Design View…continued To add a field to a form: • Click the Add Existing Fields button in the Tools group in the Form Design Tools Design tab. • Drag the field name from the Field List pane to the desired location in the Detail section. Field List pane
Create Custom Forms Using Design View…continued To move objects in Design view: • Select the control object. • Use the orange border or the gray move handle to drag the object to a new location. orange border
Create Custom Forms Using Design View…continued To resize an object in Design view: • Select the control object. • Drag any of the sizing handles to change the height or width of the object. pointer
Create Custom Forms Using Design View…continued • By default, the Snap to Grid feature is turned on in Design view. • This feature pulls the edge of a control to the nearest grid point when you are moving or resizing it. • If you want to move or resize an object more precisely, you may want to turn the feature off.
Create Custom Forms Using Design View…continued To change the font color ina control: • Select the desired control object. • Click the down-pointing arrow on the Font Color button in the Font group on theForm Design Tools Format tab. • Click the desired color at the color palette. • Deselect the control. Font Color button
Create Custom Forms Using Design View…continued To use the selection rectangle: • In Design view, position the pointer above the top left edge of the control you wish to select. • Drag down and to the right to draw a rectangle around the control. • Release the mouse. selection rectangle
Create Custom Forms Using Design View…continued To change the tab order of the fields in a form: • Open the form in Design view. • Click the Tab Order button in the Tools group of the Form Design Tools Design tab. • At the Tab Order dialog box, click in the gray field selector bar next to the field name. • Drag the field to the desired location. • Repeat Steps 3-4 as required. • Click OK. Tab Order dialog box
Create Custom Forms Using Design View…continued • A tab control is an object used to add pages to a form. • When viewing aform, you click the page tab in the tab control object to display the contents of the page. • Add a tab control to a form to organize fields in a large table into smaller related groups or to insert multiple subforms that display on separate pages within the tab control object.
Create Custom Forms Using Design View…continued To add a tab control to a form: • Open the form in Design view. • Click the Tab Control button in the Control group of the Form Design Tools Design tab. • Position the crosshairs in the Detail section at the desired location for the top left of the object. • Drag down and right to draw the object’s desired height and width. • Release the mouse. pages
Create Custom Forms Using Design View…continued To change the page caption: • Click the desired tab in the tab control. • Click the Property Sheet button in the Tools group. • Click the Format tab in the Property Sheet. • Click in the Caption property box. • Type the desired text. • Close the Property Sheet. Caption property box
Create Custom Forms Using Design View…continued To add a subform to apage: • Click the desired page tab in the tab control. • Make sure the Use Control Wizards button is active. • Click the More button in the Controls scroll bar. • Click the Subform/Subreport button at the expanded Controls list. continues on next slide… Subform/Subreport button
Create Custom Forms Using Design View…continued • Click the crosshairs inside the selected page. • Click Next at the first Subform Wizard dialog box. continues on next slide… crosshairs
Create Custom Forms Using Design View…continued • At the second Subform Wizard dialog box, choose the table and fields. • Click Next. • At the third Subform Wizard dialog box, click Next. • At the last Subform Wizard dialog box, click Finish. • Delete the subform label control object. • Move and resize the subform object as necessary. second Subform Wizard dialog box
Create Custom Forms Using Design View…continued • In Design view, the controls in the subform display one below another. However, in Form view, the subform displays using a datasheet layout. • If you want to, you can change the Default View property in the subform’s Property Sheet to Single Form. • This view matches the layout of the controls in Design view to the layout of the fields in Form view. • The fields display one below another in a single column in Form view.
CHECKPOINT 1 • The Form Design button is located in this tab. • Home • Create • External Data • Database Tools • Access places how many control objects for each field on a form? • 1 • 2 • 3 • 4 Answer Answer Next Question Next Question • These type of objects are used to display text or graphics and do not rely on atable for their content. • calculated • bound • unbound • text • To select multiple objects, hold down this key as you click. • Shift • Ctrl • Alt • Shift + Ctrl Answer Answer Next Question Next Slide
Add Calculations to a Form in Design View To add a calculated control to a form: • Open the form in Design view. • Click the Text Box button in the Controls group in the Form Design Tools Design tab. • Position the crosshairs in the Detail section at the desired location. • Drag to create the control object. • Release the mouse. continues on next slide… crosshairs
Add Calculations to a Form in Design View…continued • Click in the text box control. • Type the formula. • Press Enter. • Delete the text in the label control object. • Type the label text. • Press Enter. formula
Adjust Objects for Consistency in Appearance To align multiple objects: • In Design view, select the desired objects. • Click the Form Design Tools Arrange tab. • Click the Align button in the Sizing & Ordering group. • Click the desired option at the drop-down list. • Deselect the controls. Align button
Adjust Objects for Consistency in Appearance…continued To adjust spacing between objects: • In Design view, select the desired control objects. • Click the Form Design Tools Arrange tab. • Click the Size/Space button in the Sizing & Ordering group. • Click the desired option in the Spacing section at the drop-down list. • Deselect the controls. Size/Space button
Add Graphics to a Form in Design View • A picture saved in a graphic file format can be added to a form by using the Logo button or the Insert Image button in the Controls group in the Form Design Tools Design tab. • Access automatically adds the image to the left side of the Form Header section. • You can move and resize the image as needed. • Access supports the following graphic file formats for a logo control object: bmp, gif, jpeg, jpg, and png.
Add Graphics to a Form in Design View…continued • Use the Insert Image button when you want to place the picture in another section of the form or if you want to draw a larger control object to hold the picture. • Access supports the following graphic file formats for an image control object: gif, jpeg, jpg, and png.
Add Graphics to a Form in Design View…continued To add clip art to a form: • Open the form in Design view. • Start Microsoft Word. • Click Insert, Clip Art. • Locate and insert the desired clip art into the document. • Copy the clip art image. • Switch to Microsoft Access. • Paste the image into the desired section of the form. • Move and resize as required. clip art
Anchor Controls to a Form To anchor a control in a form: • Open the form in Design view. • Select the control object(s) to be anchored. • Click the Form Design Tools Arrange tab. • Click the Anchoring button in the Position group. • Click the desired anchor position. • Deselect the object(s). • Save the form. Anchoring button
Create a Datasheet Form and Restrict Form Actions To create a datasheet form: • Select the table in the Navigation pane. • Click the Create tab. • Click the More Forms button in the Forms group. • Click the Datasheet option. • Save the form. Datasheet option
Create a Datasheet Form and Restrict Form Actions…continued To restrict record actions for a form: • Open the form in Design view. • Double-click the Form Selector button. • Click the Data tab. • Change the Allow Additions, Allow Deletions, Allow Edits, or Allow Filters to No. • Close the Property Sheet. • Save the form. Use these form properties to restrict the usage of the form.
Create a Form Using the Blank Form Tool To create a blank form: • Click the Create tab. • Click the Blank Form button in the Forms group. • Expand the field list for the desired table. • Drag the fields to the form as needed. • Add a title, apply formatting, and make other design changes as needed. • Save the form. Blank Form button
Create a Form Using the Blank Form Tool…continued To create a list box: • Open the form in Layout or Design view. • Click the List Box button in the Controls group in the Form Layout Tools Design tab. • Click within the form at the desired location. continues on next slide… List Box button
Create a Form Using the Blank Form Tool…continued • Create the values within the List Box Wizard dialog boxes. • Save the form. List Box Wizard dialog box
Create a Form Using the Blank Form Tool…continued To create a combo box: • Open the form in Layout or Design view. • Click the Combo Box button in the Controls group in the Form Layout Tools Design tab. • Click within the form at the desired location. continues on next slide… Combo Box button
Create a Form Using the Blank Form Tool…continued • Create the values within the Combo Box Wizard dialog boxes. • Save the form. Combo Box Wizard dialog box
Sort and Find Records in Forms continues on next slide…
Sort and Find Records in Forms…continued To find records using a wildcard: • Open the form in Form view. • Click in the field by which you want to search. • Click the Find button in the Find group in the Home tab. • Type the search string. Include an asterisk for any variable text. • Click Find Next. • Continue clicking Find Next until the search is finished. • Click OK. • Close the Find and Replace dialog box. search string
Sort and Find Records in Forms…continued To sort records in a form: • Open the form in Form view. • Click in the field by which you want to sort. • Click the Ascending button or Descending button in the Sort & Filter group in the Home tab. Ascending button
CHECKPOINT 2 • A calculated control is considered to be this type of object. • plain • integrated • bound • unbound • The Blank Form button is located in this tab. • Home • Create • External Data • Database Tools Answer Answer Next Question Next Question • Access inserts clip art as this type of OLE control object. • plain • integrated • bound • unbound • This type of box displays a collectionof values for a field within the control object. • list • button • selection • drop Answer Answer Next Question Next Slide
Creating and Using Custom Forms Summary of Presentation Concepts • Create a custom form in Design view using all three form sections • Add fields individually and as a group • Move, size, and format control objects • Change the tab order of fields • Create tabbed pages in a form and insert a subform on each page • Add and format a calculation to a custom form • Group and ungroup multiple controls • Adjust the alignment and spacing of controls • Add graphics to a form • Anchor a control to a position in the form • Create a datasheet form • Modify form properties to restrict actions allowed in records • Create a blank form • Add list and combo boxes to a form • Sort records in a form and locate a record using a wildcard character