29
Created 4-26-10 Revised 6-7-10 Office of Information, Technology and Accountability 1 Microsoft Access Combos & Command Boxes

Created 4-26-10 Revised 6-7-10 Office of Information, Technology and Accountability 1 Microsoft Access Combos & Command Boxes

Embed Size (px)

Citation preview

Created 4-26-10 Revised 6-7-10 Office of Information, Technology and Accountability1

Microsoft Access Combos & Command Boxes

Office of Information, Technology and Accountability2Created 4-26-10 Revised 6-7-10

While Waiting (Do Now)

Launch Access Create a Blank Database Name and Save Database to Desktop

Office of Information, Technology and Accountability3Created 4-26-10 Revised 6-7-10

Nine Elements of Digital Citizenship Student Learning and Academic Performance

1. Digital Access: full electronic participation in society2. Digital Literacy: the process of teaching and learning about technology and the use of technology3. Digital Communication: electronic exchange of information

School Environment and Student Behavior

4. Digital Security & Safety: electronic precautions to guarantee safety/physical well-being in a digital technology world5. Digital Etiquette: electronic standards of conduct or procedure6. Digital Rights and Responsibilities: those freedoms extended to everyone in a digital world

Student Life Outside the School Environment

7. Digital Commerce: electronic buying and selling of goods8. Digital Health and Wellness: physical and psychological well-being9. Digital Law: rights and restrictions

Office of Information, Technology and Accountability4Created 4-26-10 Revised 6-7-10

Digital Citizenship Links

www.digitalcitizenship.net www.digitalcitizenshiped.com/

Curriculum.aspx www.netsmartz.org http://cybersmart.org/ www.bpscybersafety.org/index.html www.staysafeonline.info/

Office of Information, Technology and Accountability5Created 4-26-10 Revised 6-7-10

Standards Addressed

Standard 1: Demonstrate proficiency in the use of computers and applications as well as an understanding of concepts underlying hardware, software, and connectivity.

Office of Information, Technology and Accountability6Created 4-26-10 Revised 6-7-10

Introduction to Access Combo BoxesBy the end of this session you will know and be

able to: Describe the function of combo boxes Create list and combo boxes in database

Use the combo box wizard to display any value Use combo wizard to apply various options in the

combo box Store and save the values in the field Use the command buttons Use command buttons wizards. Create and print a report

Office of Information, Technology and Accountability7Created 4-26-10 Revised 6-7-10

You will demonstrate this by ~

Creating a database table using fields and different data typesName, Lastname, Date

Inputting data to create records Create a combo box

To Launch Microsoft Access

Office of Information, Technology and Accountability8Created 4-26-10 Revised 6-7-10

TaskbarStart Button ProgramsMicrosoft Access

Creating a Database

Select Blank Database

Created 4-26-10 Revised 6-7-10 9 Office of Information, Technology and Accountability

Others ways to create a database

Click here to open after the database format has been selected

You can also create a database by selecting to use templates or by entering data.

Created 4-26-10 Revised 6-7-10 10 Office of Information, Technology and Accountability

Saving a Database

Give it a name and find a specific folder to save the database.

Created 4-26-10 Revised 6-7-10 11 Office of Information, Technology and Accountability

Databases are create with a variety of objects

Database can consist of many objects:

TablesQueries FormsReport . . . . . . .

Created 4-26-10 Revised 6-7-10 12 Office of Information, Technology and Accountability

Creating ComboBoxes

within a Database

Created 4-26-10 Revised 6-7-10 13 Office of Information, Technology and Accountability

List and Combo Boxes If there are small, finite number of values for a certain field on a form, using combo or list boxes may

be a quicker and easier way of entering data. These two control types differ in the number of values they display.

List values are all displayed while the combo box values are not displayed until the arrow button is clicked to open it as shown in these examples:

Created 4-26-10 Revised 6-7-10 14 Office of Information, Technology and Accountability

Creating a combo boxBy using a combo or list box, the name of the academic building does not need to be typed for every

record. Instead, it simply needs to be selected from the list. Follow these steps to add a list or combo box to a form:

Open the form in Design View. Select View Toolbox to view the toolbox and make sure the "Control Wizards" button is pressed in.

Click the list or combo box tool button and draw the outline on the form. The combo box wizard dialog box will appear. Select the source type for the list or combo box values and click Next >.

Created 4-26-10 Revised 6-7-10 15 Office of Information, Technology and Accountability

Depending on your choice in the first dialog box, the next options will vary

Click Next > and choose fields from the table or query that was selected. Click Next > to proceed.

On the next dialog box, set the width of the combo box by clicking and dragging the right edge of the column. Click Next >.

Created 4-26-10 Revised 6-7-10 16 Office of Information, Technology and Accountability

Combo box wizard

On the next dialog box, set the width of the combo box by clicking and dragging the right edge of the column.

Click Next >.

Created 4-26-10 Revised 6-7-10 17 Office of Information, Technology and Accountability

Combo Wizard The next dialog box allows tells Access what to do with the value that is selected. Choose "Remember the value for later use" to use the value in a macro or procedure (the value is

discarded when the form is closed), or select the field that the value should be stored in.

Click Next > to proceed to the final screen.

Type the name that will appear on the box's label and click Finish.

Created 4-26-10 Revised 6-7-10 18 Office of Information, Technology and Accountability

Check Boxes and Option Buttons Use check boxes and option buttons

to display yes/no, true/false, or on/off values. Only one value from a group of option buttons can be selected while any or all values from a check box group can be chosen. Typically, these controls should be used when five or less options are available. Combo boxes or lists should be used for long lists of options.

To add a checkbox or option group:

Click the Option Group tool on the toolbox and draw the area where the group will be placed on the form with the mouse. The option group wizard dialog box will appear.

On the first window, enter labels for the options and click the tab key to enter additional labels.

Click Next > when finished typing labels.On the next window, select a default value if there is any and click Next >.

Created 4-26-10 Revised 6-7-10 19 Office of Information, Technology and Accountability

Option group wizard

Select values for the options and click Next >.

Created 4-26-10 Revised 6-7-10 20 Office of Information, Technology and Accountability

Choose what should be done with the value and click Next >.

Created 4-26-10 Revised 6-7-10 21 Office of Information, Technology and Accountability

Choose the type and style of the option group and click Next >.

Type the caption for the option group and click Finish.Created 4-26-10 Revised 6-7-10 22 Office of Information, Technology and Accountability

Command ButtonsIn this example, a command button beside each record is used to open another form. Open the form in Design View and ensure that the Control Wizard button on the toolbox is pressed in. Click the command button icon on the toolbox and draw the button on the form. The Command Button Wizard will then appear. On the first dialog window, action categories are displayed in the left list while the right list displays the actions in each category. Select an action for the command button and click Next >.

Created 4-26-10 Revised 6-7-10 23 Office of Information, Technology and Accountability

The next few pages of options will vary based on the action you selected.

Continue selecting options for the command button.

Choose the appearance of the button by entering caption text or selecting a picture.

Check the Show All Pictures box to view the full list of available images.

Click Next >.

Enter a name for the command button and click Finish to create the button

Created 4-26-10 Revised 6-7-10 24 Office of Information, Technology and Accountability

Command Buttons Open the form in Design View and

ensure that the Control Wizard button on the toolbox is pressed in.

Click the command button icon on the toolbox and draw the button on the form. The Command Button Wizard will then appear.

On the first dialog window, action categories are displayed in the left list while the right list displays the actions in each category.

Select an action for the command button and click Next >.

Created 4-26-10 Revised 6-7-10 25 Office of Information, Technology and Accountability

Command button wizard

The next few pages of options will vary based on the action you selected.

Continue selecting options for the command button. Choose the appearance of the button by entering caption text or selecting a picture.

Check the Show All Pictures box to view the full list of available images.

Click Next

Enter a name for the command button and click Finish to create the button.Created 4-26-10 Revised 6-7-10 26 Office of Information, Technology and Accountability

Office of Information, Technology and Accountability27Created 4-26-10 Revised 6-7-10

Your TurnCreate a Database called Address Book

Create a Table called Address Book Table

Define Fields as:First Name, Last Name, Address, City, State, Zip

Input 10 recordsCreate a combo box two listed as options Create a list box with at least different school names in your district.

Office of Information, Technology and Accountability28Created 4-26-10 Revised 6-7-10

CATEGORY 4 3 2 1

Database Able to create a database with various combo boxes independently.

Able to create a combo with lots of help.

Able to create combo box in a database

Not able to create a database or combo box.

Combo Boxes

Able to do functions in combo boxes within a database. Use combo box wizard to apply various options in a combo box.

Able to do all the functions in combo box but not able to do list boxes. Use the wizard and apply two options in a combo box.

Able to do all the functions in combo box but not able to do list boxes.

Not able to create a combo box or list box

Command buttons

Used command buttons and command wizards. Use check boxes and option buttons to display yes/no, true/false, or on/off values.

Used command buttons and command wizards. Use check boxes but didn’t use option buttons to display yes/no, or on/off values.

Used command buttons and command wizards.

Did not use command buttons or wizards.

ACCESS COMBO BOXES RUBRIC

Office of Information, Technology and Accountability29Created 4-26-10 Revised 6-7-10

Resources ISTE Publications, Digital Citizenship in Schools by

Mike Ribble and Gerald Bailey, copyright 2007, ISBN No: 978-1-56484-232-9. 

http://office.microsoft.com/training/training.aspx?AssetID=RC010341371033&pid=CR061829401033

http://www.ehow.com/how_2125025_create-access-2007-combo-box.html