Microsoft Access XP (2002) Switchboards & Macros

Size: px
Start display at page:

Download "Microsoft Access XP (2002) Switchboards & Macros"

Transcription

1 Microsoft Access XP (2002) Switchboards & Macros Group/Summary Operations Creating a Switchboard Creating Macro Buttons From Wizards Creating Macros Manually Using the Condition Column Start Up Parameters

2 Table of Contents DEFINITIONS 3 Switchboard... 4 MACRO... 4 Module... 5 Where Macros/Modules Are Stored... 5 ABOUT THE DATABASE 3 DATA ENTRY FORM 4 SWITCHBOARDS 5 Examining A Completed Switchboard... 6 CREATING A SWITCHBOARD 6 The Toolbox Toolbar... 7 USING THE MACRO WIZARDS 8 Example 1: A Button That Runs A Query: Dollars To Goal... 8 Example 2: A Button That Runs A Query: Total Current Donations... 8 Example 3: Create a Button that Opens a Form: Main Form... 9 VIEWING VISUAL BASIC CODE 9 CREATING MACROS WITHOUT WIZARDS 10 Macro Basics Exploring an Existing Macro Macro 1: A Macro That Goes to a New Record and Moves the Cursor Macro 2: A Macro that Filters a Query From a Drop Down Menu Choice Understanding Events SYNCHRONIZED COMBO BOXES 15 Step 1: Create the Countries Combo Boxes Step 2: Creating a Query for the Cities Combo Box Step 3: Creating the Cities Combo Box Step 3: Create the Results Query Step 4: Creating the Macro Step 6: Assigning the Macros to the Combo Boxes MACROS - THE CONDITION COLUMN 21 Condition Macro 1: Message Boxes Condition Macro 2: Macros That Input Data Condition Example Setting the Arguments Assign the Macro to the Form MACRO: OPTION BOXES 27 Examining the Query: Donation Status How Option Groups Work HIDING FORM CONTROLS 31 SETTING STARTUP PARAMETERS 32 Temporarily Bypassing the Startup Limitations Removing Startup Limitations HIDING DATABASE OBJECTS 33 Unhiding Database Objects Access_2002-Switchboards.doc April 23, 2003 Page 2 of 33

3 ABOUT THE DATABASE This handout utilizes a database called MacrosXP.mdb. The database can be found in two locations: From HOH300, HOH401, & Bri202, it can be copied from: \\sbalab\apps\prof\training to you re A:\ drive or to C:\temp It can also be downloaded from the web at the following address: In the same location, there is another database called MacrosXP-Complete.mdb that has the completed examples used in this handout The purpose of this database is to track which shows customers have seen, how many tickets were purchased, and how much money they have donated to the theatre. It is made up of 3 tables which are related by their common field of Client_ID. Customer Info - This table tracks general patron information. Every patron, whether they are a donor, attendee or both, is listed in this database only once. Donor Info - If a patron has made a donation then the donation amount, date, etc. is tracked in this database. If they have made more than one donation, their Client_ID will appear more than once. (Their name, address, etc, is listed in the Customer Info table.) Tickets Purchased - If a patron has purchased a ticket then the name of the show, date, number of tickets, and ticket price will appear in this database. If they have seen more than one show, then their Client_ID will appear more than once. (Their name, address, etc, is listed in the Customer Info table.) For more information on relating tables, see the handout: Access XP - Forms which can be found at the following web address:

4 Marshall School of Business DATA ENTRY FORM University of Southern California If you click on the Forms tab, you will notice that there are three forms: Donor Info Subform - This form accesses fields from the table Donor Info. It is never opened directly but is pulled into the Main Form when the Main Form is opened. Tickets Purchased Subform - This form accesses fields from the table Tickets Purchased. It is never opened directly but is pulled into the Main Form when the Main Form is opened. In addition, it contains a calculated field called Order Total which was created by multiplying the number of tickets purchased by the ticket price. MainForm - This form is based off the table Customer info and contains the two subforms Donor Info Subform and Tickets Purchased Subform. For more information on creating subforms, see the handout: Forms - Beginning which can be found at the following web address: Note that to create a mainform containing two subforms you must use the Subform/SubReport button found on the Toolbox toolbar while in form Design View to create multiple subforms. The wizards cannot be used to make a form that contains more than one subform. DEFINITIONS Switchboard A Switchboard is a screen with buttons on it that automates database functions. Its purpose is to make the database easier to use while keeping sensitive areas of the database protected from misuse. The switchboard screen itself is created from an unbound form (a form which is not based on a table) and the buttons on the switchboard activate either macros or Visual Basic code sequences. Also, calculations and functions may be placed on a switchboard. MACRO A Macro is a way to automate a task or a series of tasks in your database. A macro is an object just as tables, queries, forms, and reports are objects. Actions: every task you want a macro to perform is called an action. In Access, there are 42 actions that you can select and perform in your macros. Events: Most macros are triggered by events, such as: opening a form, clicking in a field, pressing the ENTER key, etc. You can make macros do such things as: automatically opening a form, updating a field, or placing the hourglass on the screen. Access_2002-Switchboards.doc January 2003 Page 4 of 33

5 Marshall School of Business University of Southern California Module A Module is another object that contains Visual Basic programming code that you can use to add additional functionality to your database (much as you would Macros). By using Visual Basic, Access can be used to perform operations its designers did not build into it. When you use the command button wizard, it creates a procedure in Visual Basic code (not Macro code). Custom functions can also be created within modules. Visual Basic is a fairly easy programming language, but it is also extensive and therefore beyond the scope of a simple two hour workshop. Where Macros/Modules Are Stored Stand Alone Macros - These are macros you created manually within the Macros tab. They are called stand alone because they can be made to work alone or assigned to an Access object such as a form, query, etc. Form Created Macros/Modules - When you create a command button on a form to automate operations, the macro is stored within the form as visual basic code and will not appear within the Macros or Modules tab. SWITCHBOARDS A Switchboard is a screen with buttons on it that automate database functions. The purpose of a switchboard is to make a database easier to use while keeping sensitive areas of the database protected from misuse. The buttons on the switchboard activate either macros or Visual Basic code sequences. Switchboards are created from Unbound forms. (A form which is not based upon a table.) The buttons placed on the switchboard activate either macros, events, or Visual Basic procedures when pressed. This handout will deal primarily with events and macros. Access_2002-Switchboards.doc January 2003 Page 5 of 33

6 Marshall School of Business University of Southern California Examining A Completed Switchboard Below is a completed switchboard which we will recreate. It contains five command buttons which were created using wizards and three controls which employ macros. To view the form: 1. Open the file: MacrosXP-Complete 2. Click on the Forms tab. 3. Double click the form Switchboard - Complete to open it. 4 Click the various buttons to see what they do. 5. Close the database: FILE CLOSE CREATING A SWITCHBOARD As mentioned above, a switchboard is created from an unbound form. The steps in this section show how to create the unbound form. 1. Open the database: MacrosXP 2. Click on the Forms tab. 3. Click on the New button. 4. Select Design View and click on Ok. 5. Resize the form to fill most of the screen 6. Click on the Save icon and name the switchboard: Switchboard Access_2002-Switchboards.doc January 2003 Page 6 of 33

7 Marshall School of Business University of Southern California The Toolbox Toolbar When working with forms, the Toolbox contains many of the buttons you will need. If it is not visible while in form Design View, then click the Toolbox icon on the menu: Note that if the Control Wizards wizards will not help you. icon on the Toolbox toolbar is not pressed, the command Select Objects: Allows the selection of objects. Label: Used for placing text on any part of your form. Option Group: Used in conjunction with option buttons, this allows you to select between a group of choices. Option Button: Use either with a Yes/No field or in an option group. Combo Box: Allows selection from a drop down list of choices. Command Button: Use to activate macros & module commands. Unbound Object Frame: Use to place OLE objects (sounds, pictures, etc.) from an outside source in your form. Page Break: Forces a page break. SubForm/SubReport: Use to create a form within a form. Rectangle: Places a rectangle in the form. Control Wizards: When turned on, wizards will help with using other tool box controls. Text Box: Used to create calculations. Toggle Button: Toggles between two choices. Check Box: Used with Yes/No fields. List Box: Allows selection from a list of choices. Image: Use to place pictures from a source outside the database on the form. Bound Object Frame: Used to display OLE objects (such as pictures) that are stored in the table in the form. Tab Control: Allows you to place controls behind one another using tabs. Line: Use to place lines on your form. More Controls: Opens a list of more advanced controls. Access_2002-Switchboards.doc January 2003 Page 7 of 33

8 USING THE MACRO WIZARDS The macro wizards can be used to generate the Visual Basic code needed to run a macro. The wizards can be used to perform simple operations without having to create macros in the Macro tab or learn Access Visual Basic code. Example 1: A Button That Runs A Query: Dollars To Goal When pressed, the button will open a query called $ to Goal which subtracts the total current donations from the goal of $50,000. The query was based on the table Donor Info and is designed as shown here. Note that it employs the SUM function rather than using the Totals row. 1. With the Switchboard form still open and in Design View : 2. From the Toolbox, click on the Command Button icon: 3. Click in the upper right corner of the form. 4. From the Command Button Wizard, select the category: Miscellaneous 5. In the Action window, select Run Query and click Next. 6. Select the query $ to Goal and click Next. 7. Select the option Text and type: Dollars to Goal 8. Click on Next. 9. Name the button: Dollars to Goal and click Finish. 10. Go into Form View and click the command button. It should run the query. 11. Close the query window and then click the Save icon to save the form. Example 2: A Button That Runs A Query: Total Current Donations When pressed, the button will open a query called Total Current Donations The query was based on the table Donor Info and is designed as shown here. It will total all donations made using the Totals row. 1. With the Switchboard form still open and in Design View : 2. From the Toolbox, click on the Command Button icon 3. Click below the last button created. 4. From the Command Button Wizard, select the category: Miscellaneous 5. In the Action window, select Run Query and click Next. 6. Select the query Total Current Donations and click Next. 7. Select the option Text and type: Total Donations 8. Click on NEXT. 9. Name the button: Total Donations and click Finish. 10. Go into Form View and click the command button. It should run the query.

9 11. Close the query window and then click the Save icon to save the form. Example 3: Create a Button that Opens a Form: Main Form When clicked, this button will open a form called Main Form. Main Form is based on three different tables: Customer Info, Tickets Purchased, and Donor Info. 1. With the Switchboard form still open and in Design View : 2. From the Toolbox, click on the Command Button icon 3. Click on the form. 4. In the Category window, select: Form Operations 5. In the Action window, select: Open Form 6. Click Next. 7. Select the form Main Form 8. Click Next. 9. Select the option Text and type: Open the Main Form. 8. Click on Next. 9. Name the button: Open Main Form and click Finish. 10. Click the Save button. 11. Go into Form View and click the command button. The form should open. 12. Close the form. VIEWING VISUAL BASIC CODE If you are curious about the code the Command Button Wizard is generating for your, the code for any button can be easily viewed and edited. To view the code for the Open Main Form button created above: 1. Select Design View. 2. Right-click the button. 4. From the pop-up menu, select: Properties 2. Click on the Event tab. 3. Click the property which displays [Event Procedure] then click the Build button next to it. 4. When finished viewing the code, close the Module window. Access_2002-Switchboards.doc January 2003 Page 9 of 33

10 CREATING MACROS WITHOUT WIZARDS Using the Wizards is useful but limited. When you need to perform an action that the wizards do not provide a function for, it is time to move on to creating macros. Macro Basics You must save your macros before you can run them. If you name a macro Autoexec, Access will run it whenever you open the database. A single macro can perform one or many actions. A Macro object can contain multiple macros. This means that when you click on the Macros tab in the Database window, each macro listed can contain multiple sub macros. Sub macros are created by placing a name in the Name column. If there is no name in the name column then Access will read all of the code in the macro. Macro code reads from top to bottom in the macro pane window until it finds no more code or it sees another macro name in the name column. A blank row will not stop a macro from reading. Comments are optional and are ignored by Access. Every task you want Access to perform is called an Action, and there are 47 different actions you can have a macro perform. Exploring an Existing Macro 1. Open the database: MacrosXP-Complete (choose: FILE OPEN) 2. Click on the Macros tab. 3. Select the macro: Macro Complete and click the Design button. The Macro window is divided up into 4 parts: The menus. The toolbars. The Action Pane (top part of the window) where the specific action is selected. The Argument Pane (bottom portion of the window) where parameters are set. MacrosXP-Complete contains several macros: Open Mainform Complete : This macro opens the form Mainform - Complete. Show History : This macro runs the drop down list on the switchboard and runs a query called Patron Show History. It then filters the query to only show the records for the name chosen from the drop down list. Donor History : This macro runs the drop down list on the switchboard and runs a query called Patron Donor History. It then filters the query to only show the records for the name chosen from the drop down list. Add New Records : This macro takes the cursor to a new record in the form Mainform - Complete and then positions the cursor in the First_Name field. Access_2002-Switchboards.doc January 2003 Page 10 of 33

11 Macro Names : Condition : macro pane. Click this button to display/hide the Macro Names column in the Macros pane. Click this button to display/hide the Conditions column in the Macro Name: For a macro object to contain several macros, you must name the individual macros in the Macro Name column. Access reads code from top to bottom and will stop reading when it reaches another macro name. If you did not use macro names, access would read all of the code in the macro object. Condition: If you place a condition in this column, Access will only execute the code next to the condition if the condition is true. Note that true or false, the line below will be read. An example of a condition might be to check to see if an order date is before the required date. Action: This is the actual macro code that is executed by access. You can select from 49 different actions. Once an action is selected, any specifics are set below in the arguments pane. Comments: Comments are optional and serve as reminders or explanations to yourself for what each line of code is for. Access ignores everything in the Comments section. Action Arguments: This area allows the user to specify arguments for the currently selected action. This pane will change depending on the action selected and always reflects the currently selected action. Access_2002-Switchboards.doc January 2003 Page 11 of 33

12 Macro 1: A Macro That Goes to a New Record and Moves the Cursor This macro will be assigned to form Main Form and will tell Access to begin a new record and position the cursor in the cursor in the First_Name field. Step A: Create the Macro 1. Reopen MacrosXP by selecting it from the menu: FILE OPEN 2. Click on the Macros tab. 3. Click the New button. 4. Click the Macro Names button to display that column on the grid. 5. Create the grid shown below including all actions and their arguments. The arguments for each action are shown to the right. For the GoToRecord action, the arguments are Object Type (Form), Object Name (Main Form), and Record (New). Offset is not used. For the GoToControl action, the only argument is the name of the field to go to (First_Name). 6. Save the Macro sheet as My Macros and then close it. Step B: Use the Wizards to Assign the Macro to the MainForm These steps use the Command Button Wizard to assign the macro My Macros.AddRecord to the command button. 1. Click on the Forms tab, select Main Form and click Design View. 2. In the Toolbox, select the Command Button and then click on the form. 3. In the Categories pane, select: Miscellaneous 4. In the Action pane, select: Run Macro 5. Click Next. 6. Select: My Macros.New Record 7. Click Next. 8. Select Text and type (to be displayed on the button): Add a New Record 9. Click Next. 10. Name the button: Add_Record 11. Click Finish. Access_2002-Switchboards.doc January 2003 Page 12 of 33

13 Macro 2: A Macro that Filters a Query From a Drop Down Menu Choice When the user selects a client s name from a drop down box on the Switchboard form, their choice will be used as a filter in a query to only show clients who match. For example, if they select Norma Desmond, they will only see shows seen by Norma. Step A: Create the Combo Box 1. Click on the Forms tab and open the form Switchboard in Design View. 2. Make sure that the Control Wizards icon on the Toolbox is active. 3. From the Toolbox, click the Combobox button and then click the form. 4. Select: I want the combo box to lookup the values in a table or query and click Next. 5. Select the table Customer Info then click Next. 6. Select the fields: Client_ID, First_Name, Last_Name then click Next. 7. Adjust the column widths if necessary and then click Next. 8. Select the option: Remember the value for later use and click Next. 9. Label the combo box: Attendance History and click Finish. 10. Right-click the combo box and select: Properties 11. Click on the All tab. 12. In the Name box, name the combo box: Show History 10. Click the Save button. 11. Go into Form View. 12. Click the down arrow and select a contact. (Note that at this point nothing else happens.) Step B: Create a Macro that Runs the Query & Filters 1. Click on the Macros tab. 2. Select the macro My Macros and then click the Design View button. 3. Skip a row down from the previous macro and create the action grid and arguments below. Access_2002-Switchboards.doc January 2003 Page 13 of 33

14 The code that filters our query basically means the following when stated in plain English: Show only the clients from this query where the client id is equal to the client chosen from the drop down menu (called show history ) on the form called Switchboard. [client_id]=[forms]![switchboard].[show history] This is referring to the field in the query Patron Show History that must equal our combo box selection. This is the type of object that our combo box exists on. This is the name of the form the combo box exists on. This is the name of the combo box where the user selects a Client ID 4. Click the Save button and close the macro. Step C: Assign the Macro to the Drop Down List 1. Click on the Forms tab and open Switchboard in Design View. 2. Right-click the combo box and select: Properties 3. Click on the Event tab. 4. Click in the box for the On Change event. 5. Click the down arrow and select the macro: My Macros - Shows Seen 6. Save the form and go into Form View. 7. Test the macro by clicking the down arrow and selecting a name form the list. The query should run and show only the attendance for the person you selected. Note, that as an alternate solution, we could have avoided creating this macro completely by placing the code to the right of the = sign in step B directly in the criteria row of the Patron Show History query and then using the command button wizard to create a button to run the query. Understanding Events The macro above used an On Change event to trigger our macro, some other events are listed below. On Got Focus: On Before Update: On After Update: On Change: On Not in List: On Enter: On Exit: Occurs when a control becomes the currently selected control on the screen. The event occurs before the data in a control (field) is updated (saved). The event occurs after the data in a control (field) is updated (saved). The event occurs when the contents of a text box changes. The event occurs when a value entered into a combo box isn t in the list. The event occurs before the control actually receives the focus. The event occurs just before the control loses the focus to another control on the same form. Note that the order of events (and even which events are available) depends on the object being used and may differ for Forms, Reports, Text Boxes, Combo Boxes, etc. Hint: Determining the Detail and Order of Events 1. Select HELP from the menu, then choose the Index tab and search for: Events 2. For details of Events select the subtopic: Events and Event Properties Reference 3. For the order of Events select the subtopic: Find out when events occur Access_2002-Switchboards.doc January 2003 Page 14 of 33

15 SYNCHRONIZED COMBO BOXES Synchronized combo boxes allow the user to narrow down a list of records by using a succession of combo boxes. In this example, there is a combo box containing a list of all of the countries of the world and a second combo box containing all of the cities of the world. When a particular country is selected in the first combo box, the second combo box only shows cities in the country selected in the first combo box. The mechanics of what makes this all happen is illustrated below. The last page of this example shows the relationship between the Cities and Countries tables. Countries Table The Countries table provides the choices for Combo_Country. Combo_Country The Country ID selected in Combo_Country is used as a filter in Cities Combo Query. The Cities table provides the unfiltered data for the query: Cities Combo Query. Cities Table Combo_City Cities Combo Query The filtered Cities Combo Query provides choices for the Combo_City drop down list. Customer Info Donor Info Synchronized Combo Boxes MACRO The macro opens the saved query Cities Query Results and then uses CITY ID selected by the user in Combo_City to filter the Cities Query Results Tickets Purchased Cities Cities Query Results Cities Query Results is a saved query that links 4 tables. data Access_2002-Switchboards.doc January 2003 Page 15 of 33

16 Step 1: Create the Countries Combo Boxes Here we will make a combo box that will display a list of countries that the user can select from. The box will pull the Country ID and Country fields from the Countries table but will only display the names of the countries, not their ID numbers. (Displaying the Country ID is not necessary although it is the bound column.) When the user selects a country from the list, Access will remember the Country ID associated with the selected country for later use by the Cities combo box. It remembers Country ID because we are making Country ID the bound column. 1. With the form Switchboard open, click on the Design View icon 2. Activate the Toolbox. 3. On the Toolbox, inactivate the Control Wizards button (make sure it is not depressed). 4. On the Toolbox, click the Combo Box button. 5. Click on the form. 6. Right mouse click the new combo box and select: Properties 7. Click on the All tab and scroll to the top of the Properties window. 8. Enter the settings shown below. Leave all other settings at their defaults. Name: Comb_Country Row Source Type: Table/Query Row Source: Select [Country ID],[Country] from Countries order by [Country]; Column Count: 2 Column widths: 0 ;1 Bound Column: 1 Name: This is what we are naming our combo box. Row Source type: This is the method Access will use to place a list on the drop down menu. The list will come from a table or query. Row Source: Tells access which fields to display and sorts by country. Column count: Tells Access how many columns to access from the table. (The first 2) Column Widths: Tells Access which columns to display and what their widths will be. In our case, Country ID will not be displayed (0) but Country will (1). Bound Column: Tells Access which column to remember when the user selects a country. In our case, access will remember column 1 which is the Country ID number. 9. Rename the label control (the one on the left) as desired. 10. Save the form and click the Form View icon 11. Click the down arrow you just created. You should see a list of countries. Note that at this point, nothing else will happen. 12. Closed the form. Access_2002-Switchboards.doc January 2003 Page 16 of 33

17 Step 2: Creating a Query for the Cities Combo Box This combo box will list the cities but will not be directly based upon the cities table. Instead, it will be based upon a query that is based upon the Cities table. This is necessary because we wish to filter the list of cities based upon the Country ID the user selected in the Countries combo box. 1. Click on the Tables tab. 2. Select the table CITIES. 3. From the menu, click: INSERT QUERY 4. Click Design View then click Ok. 5. Place the fields: Country ID, City ID, and City in the Field row sorting by City. 6. Click in Criteria row of the Country ID column and type the following: [Forms]![switchboard]![Combo_Country] The type of object Combo_Country is located on (a form). The name of the object containing Combo_Country. The name of the object containing the criteria to be used in this query. 8. Click the Totals button and set all fields to: Group By (This prevents duplicate cities.) 9. Save the query as: Cities_Combo_Query 10. Close the query without running it. This query looks to see what Country ID the user selected in the Country combo box on the Customer data form. It then uses the Country ID associated with the country as a criteria for listing only cities that are in that country. For example, if the user selected USA in the Combo_Country combo box, then the query will insert the Country ID for USA in the criteria row in the Country ID column and list only those cities that have a Country ID of USA. TIP The code below will with list all cities in the world if the user does not select a country. It uses an IIF statement and the ISNULL function. Basically, it reads: If the Combo_Country field is blank, then list cities for all countries, otherwise, list only cities from the country the user selected in the Combo_Country combo box. IIf(IsNull([Forms]![Customer Data]![Combo_Country]),[Country ID],[Forms]![Customer Data]![Combo_Country]) Access_2002-Switchboards.doc January 2003 Page 17 of 33

18 Step 3: Creating the Cities Combo Box In this step, we will create the combo box that displays the cities. This combo box uses the query, Cities_Combo_Query as its data source. 1. Click on the Forms tab and open the form Switchboard in Design View. 2. Activate the Toolbox. 3. Inactivate the Control Wizards button (make sure it is not depressed). 4. On the Toolbox, click the Combo Box button. 5. Click on the form. 6. Right mouse the new combo box and select: Properties 7. Click on the All tab and scroll to the top of the Properties window. 8. Enter the settings shown below. Leave all other settings at their defaults. Name: Comb_City Row Source Type: Table/Query Row Source: Cities_Combo_Query Column Count: 3 Column widths: 0 ;0 ;1 Bound Column: 2 Name: This is what we are naming our combo box. Row Source type: This is the method Access will use to place a list on the drop down menu. The list will come from a table or query. Row Source: Tells Access which table or query contains the list it is to display. Column count: Tells Access how many columns to access from the query. (The first 3) Column Widths: Tells Access which columns to display and what their widths will be. In our case, neither Country ID nor City ID will be displayed (0) but City will (1). Bound Column: Tells Access which column to remember when the user selects a city. In our case, access will remember column 2, which is the City ID. 9. Save the form and then click the Form View icon. The combo boxes will both contain lists. Further, the country selected in the first combo box will filter the cities listed in the second combo box; however, the data on the form will not be affected. Note that it will be necessary to requery (press F9 ) after selecting a Country for the City combo box to reflect the change. We will fix this later with our macro. Also, no records are displayed as of yet. 10. Select a country and press F Select a city. 12. Close the form. Access_2002-Switchboards.doc January 2003 Page 18 of 33

19 Step 3: Create the Results Query Eventually, when the user selects a city, a query will run which displays all customers that live in the selected city. A macro is actually what is used to filter the query and we could also use a macro to filter a table; however, we need data that is from two different tables. Customer Info does not contain the City ID field that we are using as a filter. 1. Click on the Tables tab. 2. Select the table Cities. 3. From the menu, click: INSERT QUERY 4. Click Design View then click Ok. 5. Click the Show Tables icon. 6. Add the following tables: Customer Info Tickets Purchases Donor Info 7. Close the Show Tables window. 8. Connect the Customer Info table to the Cities table by clicking and dragging between the two City fields. 9. Double click the join line connecting the Donor Info and Customer Info tables. 10. Create an Outer Join by selecting: Include all records from Customer Info and only those records from Donor Info where the join fields are equal. 11. Click Ok to close the Join Properties window. 12. Double click the join line connecting the Tickets Purchases and Customer Info tables. 10. Create an Outer Join by selecting: Include all records from Customer Info and only those records from Tickets Purchases where the join fields are equal 11. Click Ok to close the Join Properties window. 12. Place the following fields on the grid: City ID, First_Name, Last_Name, City, Country, Show_Title, and Amount_Donated. 13. Sort by Last_Name in ascending order. 14. Save the query as Cities_Query_Results. 15. Close the query. Access_2002-Switchboards.doc January 2003 Page 19 of 33

20 Step 4: Creating the Macro Up to now we have one combo box that filters the contents of the other, but the user must press F9 (Requery) to update the city and the Cities_Query_Results query does not open at this point. This macro will connect the City Combo box ( COMBO_City ) to Cities_Query_Results and press F9 for the user. 1. Click on the Macros tab. 2. Click the New button to create a new macro. 3. From the menu, select: VIEW MACRO NAMES to view the names column. 4. Create the macros shown below. ACTION GRID ARGUMENTS FOR THE ACTIONS SELECTED ON THE ACTION GRID [City ID]=[Forms]![Switchboard].[Combo_City] The code for the Where Condition can be interpreted as: Only show records, where the CITY ID equals what is shown in the Combo_City combo box on the form called Switchboard. [Forms] is used to identify what type of object Switchboard is. They are separated by the! [Switchboard] us used to specify the location of Combo_City. They are separated by the period. 5. Save the macro as: Synchronized Combo Boxes 6. Close the macro. Access_2002-Switchboards.doc January 2003 Page 20 of 33

21 Step 6: Assigning the Macros to the Combo Boxes Here we will assign our macros to the objects in our form. Synchronized Combo Boxes.Requery Cities: is assigned to the Combo_Country combo box. Synchronized Combo Boxes.Filter By City: will be assigned to the Combo_City combo box. Assigning macros to the Combo Boxes 1. Click on the Forms tab and open the form Switchboard in Design View. 2. Double click the Combo_Country combo box to view its Properties. 3. Click on the Event tab in the Properties window. 4. Click in the row for the After Update event 5. Click the down arrow and select: Synchronized Combo Boxes.Requery Cities 6. With the Properties window still open, click on the Combo_City combo box. 7. Click on the Event tab in the Properties window. 8. Click in the row for the After Update event. 9. Click the down arrow and select: Synchronized Combo Boxes.Filter By City Using the Combo Boxes 1. Close the Properties window. 2. Save the form. 3. Click the Form View icon. 4. Select a country. 5. Select a city. The query should run and only list people who live in the city you selected. Example of the Cities Table The relationship between the Cities and the Countries tables. Note that they do not have to be related for this to work. Example of the Countries Table Access_2002-Switchboards.doc January 2003 Page 21 of 33

22 MACROS - THE CONDITION COLUMN The Condition Column The Condition column allows for the creation of If-Then-Else conditions that control under what circumstances Access will run the macro code in the Action column. When you place a criteria in the Condition column (such as [Quantity]>5 for example), the code placed in the Action column of the same row as the condition will only be executed if the condition is true. Code placed on the next line down will be executed whether the condition above is true or false. If you only want the code on the next line to be executed if the condition is true, then either: - Place the same condition on the line below. - Or place three dots on the line below which is like saying repeat the condition above. As with all macros: The macro will keep reading the lines below until: A name is encountered in the Macro Name column. Or the StopMacro action is encountered in the Action column. Condition Macro 1: Message Boxes A Message Box is a pop-up window that can be used to alert the user. When combined with the Condition column, this can be an effective method of ensuring that the user enters data as desired. In this example, when you go to the record of a person whose status is No Checks, a message box will open with a notice not to accept checks from the patron. Step A: Creating the Macro 1. Click on the Macros tab. 2. Click the macro My Macros and then click the button. 3. If necessary, click the Condition icon to make the Condition column visible. 4. Skip a row after the last macro and enter the name for your macro: NoChecksMSG 5. Create the macro as shown below. 6. Save and close the macro. Access_2002-Switchboards.doc January 2003 Page 22 of 33

23 Step C: Assign the Macro to the Form 1. Click on the Forms tab and then open the form mainform in Design View. 2. From the menu, click: EDIT SELECT FORM 3. From the menu, click: VIEW - PROPERTIES 4. In the Properties window, click the Event tab. 5. Click in the row for the On Current event. 6. Click the down arrow and select the macro: My Macros.NoChecksMSG 7. Close the Properties window. 8. Save the form then go to Form View. 9. Scroll through your records. When you get to a record that has a status of No Checks in the Status field, you will get a pop-up warning. Condition Macro 2: Macros That Input Data In this example, if the user purchases more than 6 tickets for a show, they get a 10% discount on the total cost. The SetValue action is used in this macro to place the results of our calculation into the Total field. This is different then simply placing a calculation in a form. Calculations are display only, they do not write to the table, but the SetValue action does place data in the actual table. 1. Click on the Macros tab. 2. Click the macro My Macros and then click the Design button. 3. Click the Condition icon to make the Condition column visible. 4. Create the macro shown below. Access_2002-Switchboards.doc January 2003 Page 23 of 33

24 Assign the Macro to the Form Although mainform is the form that we open when we wish to enter data, Tickets Purchased Subform is the form that contains the fields that are actually typed in. Therefore, we need to assign our macro to Tickets Purchased Subform. Because the user may decide to enter data into the Ticket_Price or No_of_Tickets fields in a random order, we will assign the macro triggering event to both fields. 1. From the Forms tab open the form Tickets Purchased Subform in Design View. 2. Right mouse click the text box control Ticket_Price and select: Properties 3. In the Properties window, click the Event tab and select the On Lost Focus event. 4. Click the down arrow and select the macro: My Macros.QuantityDiscount 5. Left mouse click on the text box control No_of_Tickets. 6. In the Properties window, select the On Lost Focus event. 7. Click the down arrow and select the macro: My Macros.QuantityDiscount 7. Go to Form View. 8. Change the number of tickets purchased or ticket price to test the macro. 9. Save and close the form. Condition Example 3 To a point, this example is very similar to Condition Macro 2 except that it gives a 10% discount based on whether or not the patron has made a donation, not on the quantity of tickets purchased. This macro is also more complicated because it must look into a subform different from the subform where the calculation is taking place. If you recall, the donation information is kept in the Donor Info Subform and the ticket information is kept in the Tickets Purchased Subform. 1. Click on the Macros tab. 2. Click the macro My Macros and then click the button. 3. If necessary, click the Condition icon to make the Condition column visible. 4. Skip a row after the last macro and enter the name for your macro: DonationDiscount 5. Create the macro shown in the figure above. The conditions cover three possibilities: What to do if the Amount Donated is greater than zero. What to do if the Amount Donated is blank. (This uses the ISNULL( ) function which would return a True condition if the field contained a blank.) What to do if the Amount Donated is equal to zero. (A blank is not considered zero.) Access_2002-Switchboards.doc January 2003 Page 24 of 33

25 [Forms]![mainform]![Donor Info subform]![amount_donated]>0 This is the type of object we are accessing. This is the name of the mainform, containing the subform. This is the name of the subform, containing the field we are basing our condition on. This is the name of the field we are basing our condition on. In English, this condition might read: If the Amount_Donated field which exists in the form Donor Info Subform which exists in the form called Main Form is greater than 0, then execute the action to the left Access_2002-Switchboards.doc January 2003 Page 25 of 33

26 Setting the Arguments 1. In the Action pane, select the SetValue action for the >0 condition. 2. Enter the Item & Expression code shown below: Item: Expression: [Forms]![Main form]![tickets Purchased Subform]![Total] [Ticket_Price]*[No_of_Tickets]* In the Action pane, select the SetValue action for the ISNULL condition. 4. Enter the Item & Expression code shown below: Item: Expression: [Forms]![Main form]![tickets Purchased Subform]![Total] [Ticket_Price]*[No_of_Tickets] 5. In the Action pane, select the SetValue action for the =0 condition. 6. Enter the Item & Expression code shown below: Item: Expression: [Forms]![Main form]![tickets Purchased Subform]![Total] [Ticket_Price]*[No_of_Tickets] 7. Save and close the macro. Assign the Macro to the Form Although mainform is the form that we open when we wish to enter data, Tickets Purchased Subform is the form that contains the fields that are actually typed in. Therefore, we need to assign our macro to Tickets Purchased Subform. Because the user may decide to enter data into the Ticket_Price or No_of_Tickets fields in a random order, we will assign the macro triggering event to both fields. 1. On the Forms tab, open the form Tickets Purchased Subform in Design View. 2. Right mouse click the text box control Ticket_Price and select: Properties 3. In the Properties window, click the Event tab and select the On Lost Focus event. 4. Click the down arrow and select the macro: My Macros.DonationDiscount 5. Left mouse click the text box control No_of_Tickets. 6. For the On Lost Focus event, select the macro: My Macros.DonationDiscount 7. Save and close the form. 8. Open the form mainform in Form View. 8. Change the number of tickets purchased or ticket price to test the macro. Note: This macro is not without its faults. If the user happens to move the current record indicator in the Donation Info Subform to a new record, Access will not see any donations. Access_2002-Switchboards.doc January 2003 Page 26 of 33

27 MACRO: OPTION GROUPS An Option Group is an interface that allows the user to pick from a list of choices. When the user selects an option and clicks Print, a macro runs which prints the appropriate labels from a report called Customer Labels. This report is based on a query called Donation Status which in turn is based on two tables: Customer Info & Donor Info Customer Info (Table) Donation Status (Table) Donation Status (query) Customer Labels (Label Report) Examining the Query: Donation Status The report ( Customer Labels ) was created using the Label Wizard, basing it on the query Donation Status. The query is shown below: The query uses an outer join specifying that all records in Customer Info and only matching records from Donor Info are shown. Any person who hasn t make a donation will have a blank in the Amount_Donated field. Grouping is used because some patrons have made more than one donation and we do not want more than one label for each person. Status: IIF([Amount_Donated]Is Null, Not Donated, Donated ) The IIF Statement is combined with the IS NULL operator to look for blanks. When a blank is found, the words Not Donated appear in the Status column. If it is not blank, Donated appears in the Status column. These two choices will be used later on as a Where condition in the macro. Access_2002-Switchboards.doc January 2003 Page 27 of 33

28 Step 1: Creating the Option Group 1. On the Forms tab, select the form Switchboard. 2. Select Design View and then click Ok. 3. On the Toolbox, verify that the Control Wizards icon is selected. 5. From the Toolbox, click on the Option Group icon. 6. Click on the form. 7. In the pop-up window, type the options as shown: 8. Click on Next. 9. Select either option concerning the default choice. 10. Click on Next. 11. Leave the values set to: 1, 2, & 3 and click Next. 12. Select Option Buttons as the type of control and choose any style you desire, then click Next. 13. For the Caption of the frame, type: Mailing Labels and click Finish. 14. Click the Save icon to save your form. How Option Groups Work When you place either radio buttons, check boxes, or toggle switches in an Option Group, only one of the items can be selected at a time. When one is selected, the Option Group temporarily stores its assigned value. In our case the three possible values are 1, 2, & 3. The Condition column of our macro uses this later as a filter to determine which labels to print. Note that option choices must be numbers. Step 2: Naming the Option Group Because we will be using the name of the option group in our macro code, we need to give it a descriptive name prior to creating the macro. 1. Have the form Switchboard open in Design View. 2. Right mouse click the Option Group frame and select: Properties (The title bar of the properties window should say: Option Group: Frame [number] ) 3. Click on the All tab and scroll up to the Name line. 4. In the Name column type: LabelChoice 5. Close the Properties window and then save and close the form. Access_2002-Switchboards.doc January 2003 Page 28 of 33

29 Step 3: Creating the Macro 1. Click on the Macros tab and then open My Macros in Design View. 2. Make sure both the Condition and Name columns are visible. 3. Skipping a row, place the cursor in the Names column below the last macro. 4. Create the macro shown below. 5. Save and close My Macros. Macro Name Condition Action Description Labels [LabelChoice]=1 OpenReport This Open Report line will print labels for all patrons if the user selects option 1 (Print All Labels in the option group called LabelChoice. [LabelChoice]=2 OpenReport This Open Report line will print labels just for Donators if the user selects option 2 (Print All Labels in the option group called LabelChoice. [LabelChoice]=3 OpenReport This Open Report line will print labels for non donating patrons if the user selects option 3 (Print All Labels in the option group called LabelChoice. Note that the Where Condition tells Access to look in the Status column of the query upon which the Customer Labels report is based. It then uses either Donated or Not Donated as a criteria for deciding which labels to print. Access_2002-Switchboards.doc January 2003 Page 29 of 33

30 Step 4: Assigning the Macro to the Labels Form Through a Button In this step, we will create a button which will run the macro. 1. On the Forms tab, open the form Switchboard in Design View. 2. On the Toolbox, verify that the Control Wizards icon is selected. 3. In the Toolbox, select the Command Button and then click on the form. 4. Click in the Miscellaneous category and then select the action: Run Macro 5. Click on Next. 6. Select the macro: My Macros.Labels and then click on Next. 7. Click in the Text box and type: PRINT 8. Click on Next. 8. Name the button: Print_Labels then click Finish. Access_2002-Switchboards.doc January 2003 Page 30 of 33

31 HIDING FORM CONTROLS To limit the user s ability to affect the form itself, you may wish to hide such things as Close buttons, Scroll Bars, etc. This section shows how to alter the controls on the form. 1. Open the form Switchboard in Design View. 2. Right-mouse click the box in the form s upper left corner to set the properties for the entire form. 3. Select: Properties 4. Click on the Format tab. 5. Make the settings shown below: Views Allowed: Form - Allows only form view. The other choice was datasheet. Scroll Bars: Neither - Hides the scrollbars. Record Selector: No - Hides the record selectors. Navigation Buttons: No - Hides the navigation buttons. Dividing Lines: No - Hides lines between records. Auto Resize: Yes - Resizes the form to show all records. Auto Center: Yes - Centers the from. Control Box: No - Hides the control box. Min Max Buttons: None: - Hides the Min/Max buttons. Close Button: No: - Hides the close button on the form. What s This Button: No: - Hides the? button. 6. Save the form and go into Form View to see the changes. Access_2002-Switchboards.doc January 2003 Page 31 of 33

32 SETTING STARTUP PARAMETERS Here we can have the switchboard load automatically when the file containing it is opened, hide menu items, toolbars, and the database window, thus preventing users from going places we may not wish them to be. 1. From the menu, click on: TOOLS - START UP 2. Click the Advanced button to see all options. 3. Set the Display Form to: Switchboard 4. Remove checks from all boxes. This will remove the users access to most Access menus and all icons thus forcing them to use your switchboard and removing the chances of them harming your database. 5. Click on Ok and close the database. 6. Reopen the database. Only your switchboard and a limited menu should be visible. Temporarily Bypassing the Startup Limitations To open the database without the startup limitations in effect, simply hold down the SHIFT key on the keyboard while opening the database. Removing Startup Limitations To permanently remove the startup options, you must open the database with the SHIFT key held down, and then choose from the menu: TOOLS - STARTUP and then place the checks back in the boxes and remove the form Switchboard from Display Form. Access_2002-Switchboards.doc January 2003 Page 32 of 33

33 HIDING DATABASE OBJECTS If you need to display the Database window but would like to hide certain database objects such as saved queries, tables, forms, reports, or macros, you can. This is a wise precaution if you have several people working on a database and you do not wish them to delete one of your objects. This is a two step procedure: First: Second: Hide the objects. Tell Access not to display hidden objects. Step 1: Hide the Object: 1. Right-click the table, query, report, etc.. to be hidden. 2. Select: Properties 3. Check the Hidden attribute and click on Ok. (The object appears dimmer but still visible.) Step 2: Don t Display Hidden Objects: 1. From the menu, click on: TOOLS - OPTIONS. 2. Click on the View tab. 3. Remove the check from Hidden Objects and click on Ok. The object should be invisible. Unhiding Database Objects To unhide a database object, you merely need to reverse the procedure above. 1. From the menu, click on: TOOLS - OPTIONS. 2. Click on the View tab. 3. Check Hidden Objects and click on Ok. (The object is now visible but dim.) 4. Right-click the table, query, report, etc., to be unhidden. 5. Select: Properties 6 Uncheck the Hidden attribute and click on Ok. (The object is now completely visible.) Access_2002-Switchboards.doc January 2003 Page 33 of 33

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Microsoft Access XP (2002) - Forms Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Table of Contents Exercise File Needed... 3 INTRODUCTION

More information

Database Design Lab: MS Access Queries

Database Design Lab: MS Access Queries Database Design Lab: MS Access Queries 1. Download lab6.accdb and rename it to lab7.accdb. 2. Create a simple query named qryauthor that has a Name attribute (i.e. Firstname Lastname ). a) Open lab6.accdb.

More information

Microsoft Access XP (2002) Reports

Microsoft Access XP (2002) Reports Microsoft Access XP (2002) Reports AutoReports Report Wizards Manually Design a Report Table Relations Multitable Reports Mailing Labels Mail Merge with MS Word Table of Contents INTRODUCTION TO REPORTS...

More information

Contents. Creating Forms

Contents. Creating Forms Access 2007 Forms Contents Creating Forms... 3 Creating a new form 3 Design view and Form view 5 Creating a user-defined form 5 Changing the look of your form... 6 Layout View 6 Design View 6 Moving and

More information

Access: Using Forms for Data Entry and Editing

Access: Using Forms for Data Entry and Editing Access: Using Forms for Data Entry and Editing Viewing and Entering Data with Forms A form is the most convenient layout for entering, changing, and viewing records from a database table or query and are

More information

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary MIS Cases: Decision Making With Application Software, Second Edition Database Glossary This database glossary is designed to accompany MIS Cases: Decision Making With Application Software, Second Edition,

More information

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling Access Review Relational Databases Different tables can have the same field in common. This feature is used to explicitly specify a relationship between two tables. Values appearing in field A in one table

More information

Intermediate Microsoft Access 2010

Intermediate Microsoft Access 2010 OBJECTIVES Develop Field Properties Import Data from an Excel Spreadsheet & MS Access database Create Relationships Create a Form with a Subform Create Action Queries Create Command Buttons Create a Switchboard

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access USING MICROSOFT ACCESS 1 Interfaces 2 Basic Macros 2 Exercise 1. Creating a Test Macro 2 Exercise 2. Creating a Macro with Multiple Steps 3 Exercise 3. Using Sub Macros 5 Expressions

More information

Microsoft Access XP (2002) Queries

Microsoft Access XP (2002) Queries Microsoft Access XP (2002) Queries Column Display & Sorting Simple Queries And & Or Conditions Ranges Wild Cards Blanks Calculations Multi-table Queries Table of Contents INTRODUCTION TO ACCESS QUERIES...

More information

Microsoft Access 2016 Intro to Forms and Reports

Microsoft Access 2016 Intro to Forms and Reports Microsoft Access 2016 Intro to Forms and Reports training@health.ufl.edu Access 2016: Intro to Forms and Reports 2.0 hours Topics include using the AutoForm/AutoReport tool, and the Form and Report Wizards.

More information

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. * Microsoft Access II 1.) Opening a Saved Database Open the Music database saved on your computer s hard drive. *I added more songs and records to the Songs and Artist tables. Click the Options button next

More information

Designing Forms in Access

Designing Forms in Access Designing Forms in Access This document provides basic techniques for designing, creating, and using forms in Microsoft Access. Opening Comments about Forms A form is a database object that you can use

More information

Microsoft Access XP (2002) - Advanced Queries

Microsoft Access XP (2002) - Advanced Queries Microsoft Access XP (2002) - Advanced Queries Group/Summary Operations Change Join Properties Not Equal Query Parameter Queries Working with Text IIF Queries Expression Builder Backing up Tables Action

More information

Chapter 4: Single Table Form Lab

Chapter 4: Single Table Form Lab Chapter 4: Single Table Form Lab Learning Objectives This chapter provides practice with creating forms for individual tables in Access 2003. After this chapter, you should have acquired the knowledge

More information

Microsoft Access 2002 for Windows

Microsoft Access 2002 for Windows Microsoft Access 2002 for Windows Handout: 2 Academic Computing Support Information Technology Services Tennessee Technological University February 2004 1. Opening the File In the PC labs, from the Start

More information

ICDL & OOo BASE. Module Five. Databases

ICDL & OOo BASE. Module Five. Databases ICDL & OOo BASE Module Five Databases BASE Module Goals taken from the Module 5 ICDL Syllabus Module 5 Database requires the candidate to understand some of the main concepts of databases and demonstrates

More information

Complete Quick Reference Summary

Complete Quick Reference Summary Microsoft Access 2010 Complete Quick Reference Summary Microsoft Access 2010 Quick Reference Summary Advanced Filter/Sort, Use AC 153 Advanced button (Home tab Sort & Filter, Advanced Filter/Sort) All

More information

Creating Reports in Access 2007 Table of Contents GUIDE TO DESIGNING REPORTS... 3 DECIDE HOW TO LAY OUT YOUR REPORT... 3 MAKE A SKETCH OF YOUR

Creating Reports in Access 2007 Table of Contents GUIDE TO DESIGNING REPORTS... 3 DECIDE HOW TO LAY OUT YOUR REPORT... 3 MAKE A SKETCH OF YOUR Creating Reports in Access 2007 Table of Contents GUIDE TO DESIGNING REPORTS... 3 DECIDE HOW TO LAY OUT YOUR REPORT... 3 MAKE A SKETCH OF YOUR REPORT... 3 DECIDE WHICH DATA TO PUT IN EACH REPORT SECTION...

More information

Microsoft Access 5: Reports & Other Useful Functions

Microsoft Access 5: Reports & Other Useful Functions Microsoft Access 5: Reports & Other Useful Functions You can print out simple records of your data by using the Office menu. However, if you want to create a customized report from one or more tables or

More information

Access 2003 Introduction to Report Design

Access 2003 Introduction to Report Design Access 2003 Introduction to Report Design TABLE OF CONTENTS CREATING A REPORT IN DESIGN VIEW... 3 BUILDING THE REPORT LAYOUT... 5 SETTING THE REPORT WIDTH... 5 DISPLAYING THE FIELD LIST... 5 WORKING WITH

More information

Chapter 5: Hierarchical Form Lab

Chapter 5: Hierarchical Form Lab Chapter 5: Hierarchical Form Lab Learning Objectives This chapter demonstrates Access 2013 features for hierarchical forms that are more complex than the single table forms you developed in Chapter 4.

More information

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key Getting started with Ms Access 2007 Getting Started Customize Microsoft Office Toolbar The Ribbon Quick Access Toolbar Navigation Tabbed Document Window Viewing Primary Key Composite Key Foreign Key Table

More information

Working with Macros. Creating a Macro

Working with Macros. Creating a Macro Working with Macros 1 Working with Macros THE BOTTOM LINE A macro is a set of actions saved together that can be performed by issuing a single command. Macros are commonly used in Microsoft Office applications,

More information

Data. Selecting Data. Sorting Data

Data. Selecting Data. Sorting Data 1 of 1 Data Selecting Data To select a large range of cells: Click on the first cell in the area you want to select Scroll down to the last cell and hold down the Shift key while you click on it. This

More information

Access Macros & Advanced Topics

Access Macros & Advanced Topics Access Macros & Advanced Topics Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 http://oit.wvu.edu/support/training/classmat/db/ Instructor:

More information

Let s create another simple report from one of our queries available: Author Age query.

Let s create another simple report from one of our queries available: Author Age query. Microsoft Access 6: Reports & Other Useful Functions This can be a very quick way to build a report, especially if you plan to put only a few fields on your report. When you click on the Blank Report button,

More information

Table of Contents COURSE OVERVIEW... 5

Table of Contents COURSE OVERVIEW... 5 Table of Contents COURSE OVERVIEW... 5 DISCUSSION... 5 THE NEW DATABASE FORMAT... 5 COURSE TOPICS... 6 CONVENTIONS USED IN THIS MANUAL... 7 Tip Open a File... 7 LESSON 1: THE NEW INTERFACE... 8 LESSON

More information

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only)

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only) ECDL Module 5 WORKBOOK Databases Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only) PAGE 2 - ECDL MODULE 5 (OFFICE XP) - WORKBOOK 1995-2007 Cheltenham Courseware Ltd. All trademarks acknowledged.

More information

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41 Table of Contents Objectives... 3 Introduction... 3 Excel Ribbon Components... 3 Office Button... 4 Quick Access Toolbar... 5 Excel Worksheet Components... 8 Navigating Through a Worksheet... 8 Making

More information

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment. Beginning Access 2007 Objective 1: Familiarize yourself with basic database terms and definitions. What is a Database? A Database is simply defined as a collection of related groups of information. Things

More information

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5)

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Section 5 AGENDA

More information

Introduction. Table Basics. Access 2010 Working with Tables. Video: Working with Tables in Access To Open an Existing Table: Page 1

Introduction. Table Basics. Access 2010 Working with Tables. Video: Working with Tables in Access To Open an Existing Table: Page 1 Access 2010 Working with Tables Introduction Page 1 While there are four types of database objects in Access 2010, tables are arguably the most important. Even when you're using forms, queries, and reports,

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Microsoft Access is database software that provides templates to help you add databases that make it easier to track, report, and share data with others. Although very powerful, the

More information

Simply Personnel Screen Designer

Simply Personnel Screen Designer Simply Personnel Screen Designer -Training Workbook- Screen Designer Page 1 Build 12.8 Introduction to Simply Personnel Screen Designer This document provides step-by-step guide for employee users to give

More information

DATA WAREHOUSE BASICS

DATA WAREHOUSE BASICS DATA WAREHOUSE BASICS A Software Overview using the Retail Golf Model with version 9 NOTE: This course material was developed using Hummingbird version 9 with Windows XP. There will be navigational differences

More information

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40 Objectives... 3 Introduction... 3 Excel Ribbon Components... 3 File Tab... 4 Quick Access Toolbar... 5 Excel Worksheet Components... 8 Navigating Through a Worksheet... 9 Downloading Templates... 9 Using

More information

Simple Invoicing Desktop Database with MS Access 2013/2016. David W. Gerbing School of Business Administration Portland State University

Simple Invoicing Desktop Database with MS Access 2013/2016. David W. Gerbing School of Business Administration Portland State University Simple Invoicing Desktop Database with MS Access 2013/2016 David W. Gerbing School of Business Administration Portland State University July 7, 2018 CONTENTS 1 Contents 1 Create a New Database 1 2 Customer

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports Version 07/11/09 Microsoft Office 2007 PDF Picture Tutorial Series Databases Tables, Forms, Subforms, and the Lookup Wizard May 2009 by Floyd Jay Winters and Julie Manchester winterf@mccfl.edu Database

More information

Microsoft Access 2010

Microsoft Access 2010 2013\2014 Microsoft Access 2010 Tamer Farkouh M i c r o s o f t A c c e s s 2 0 1 0 P a g e 1 Definitions Microsoft Access 2010 What is a database? A database is defined as an organized collection of data

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 1 Databases and Database Objects: An Introduction Objectives Describe the features of the Access window Create a database Create tables in Datasheet and Design views Add records

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 1 Databases and Database Objects: An Introduction Objectives Design a database to satisfy a collection of requirements Describe the features of the Access window Create a

More information

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1.

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1. -Using Excel- Note: The version of Excel that you are using might vary slightly from this handout. This is for Office 2004 (Mac). If you are using a different version, while things may look slightly different,

More information

Chapter11 practice file folder. For more information, see Download the practice files in this book s Introduction.

Chapter11 practice file folder. For more information, see Download the practice files in this book s Introduction. Make databases user friendly 11 IN THIS CHAPTER, YOU WILL LEARN HOW TO Design navigation forms. Create custom categories. Control which features are available. A Microsoft Access 2013 database can be a

More information

Introduction to Excel 2013

Introduction to Excel 2013 Introduction to Excel 2013 Copyright 2014, Software Application Training, West Chester University. A member of the Pennsylvania State Systems of Higher Education. No portion of this document may be reproduced

More information

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only)

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only) ECDL Module 5 WORKBOOK Databases Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only) PAGE 2 - ECDL MODULE 5 (OFFICE 2003) - WORKBOOK 1995-2007 Cheltenham Courseware Ltd. All trademarks acknowledged.

More information

The Fundamentals. Document Basics

The Fundamentals. Document Basics 3 The Fundamentals Opening a Program... 3 Similarities in All Programs... 3 It's On Now What?...4 Making things easier to see.. 4 Adjusting Text Size.....4 My Computer. 4 Control Panel... 5 Accessibility

More information

MS Access Let s begin by looking at the toolbar and menu of Access.

MS Access Let s begin by looking at the toolbar and menu of Access. MS Access 2003 Access is a database program that allows you to store, retrieve, analyze, and print information. Individuals use databases for various purposes. Businesses use databases to manage customer

More information

Access: Printing Data with Reports

Access: Printing Data with Reports Access: Printing Data with Reports Reports are a means for displaying and summarizing data from tables or queries. While forms are primarily for on-screen viewing, reports are for presenting your data

More information

Administering a Database System

Administering a Database System Microsoft Access 2010 10 Administering a Database System Objectives You will have mastered the material in this project when you can: Create custom Quick Start fields Create indexes Create a Web database

More information

Microsoft Excel XP. Intermediate

Microsoft Excel XP. Intermediate Microsoft Excel XP Intermediate Jonathan Thomas March 2006 Contents Lesson 1: Headers and Footers...1 Lesson 2: Inserting, Viewing and Deleting Cell Comments...2 Options...2 Lesson 3: Printing Comments...3

More information

Microsoft How to Series

Microsoft How to Series Microsoft How to Series Getting Started with EXCEL 2007 A B C D E F Tabs Introduction to the Excel 2007 Interface The Excel 2007 Interface is comprised of several elements, with four main parts: Office

More information

Introduction to Microsoft Access 2016

Introduction to Microsoft Access 2016 Introduction to Microsoft Access 2016 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Access 2013 Introduction to Forms and Reports

Access 2013 Introduction to Forms and Reports Forms Overview You can create forms to present data in a more attractive and easier to use format They can be used for viewing, editing and printing data and in advanced cases, used to automate the database

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5)

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Section 6 AGENDA

More information

A DVANCED T OPICS IN A CCESS: MACROS

A DVANCED T OPICS IN A CCESS: MACROS Introduction Macro: a set of one or more instructions that respond to an event (an action taken by a user, usually a keypress or mouse action). Macros are employed for two reasons: efficiency and consistency.

More information

DataMaster for Windows

DataMaster for Windows DataMaster for Windows Version 3.0 April 2004 Mid America Computer Corp. 111 Admiral Drive Blair, NE 68008-0700 (402) 426-6222 Copyright 2003-2004 Mid America Computer Corp. All rights reserved. Table

More information

Understanding Acrobat Form Tools

Understanding Acrobat Form Tools CHAPTER Understanding Acrobat Form Tools A Adobe Acrobat X PDF Bible PDF Forms Using Adobe Acrobat and LiveCycle Designer Bible Adobe Acrobat X PDF Bible PDF Forms Using Adobe Acrobat and LiveCycle Designer

More information

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification.

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification. Appendix 1 Microsoft Office Specialist: Access Certification Introduction The candidates for Microsoft Office Specialist certification should have core-level knowledge of Microsoft Office Access 2010.

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Table of Contents The Excel Window... 2 The Formula Bar... 3 Workbook View Buttons... 3 Moving in a Spreadsheet... 3 Entering Data... 3 Creating and Renaming Worksheets... 4 Opening

More information

Using Microsoft Excel

Using Microsoft Excel About Excel Using Microsoft Excel What is a Spreadsheet? Microsoft Excel is a program that s used for creating spreadsheets. So what is a spreadsheet? Before personal computers were common, spreadsheet

More information

Index. B backing up 76 7

Index. B backing up 76 7 A Access, other DBMSs and 9 Action queries 121, 125 defined 125 address book 16, 34 age calculations 60 answer table 36 editing data in 147 8 field names 294 multi-table queries 294 queries and 155 queries

More information

Open. Select the database and click. Print. Set printing options using the dropdown menus, then click the

Open. Select the database and click. Print. Set printing options using the dropdown menus, then click the The Original Quick Reference Guides Microsoft Access 2010 Access is a tool for creating and managing databases collections of related records structured in an easily accessible format such as a table,

More information

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4 Introduction to Microsoft Excel 2016 INTRODUCTION... 1 The Excel 2016 Environment... 1 Worksheet Views... 2 UNDERSTANDING CELLS... 2 Select a Cell Range... 3 CELL CONTENT... 4 Enter and Edit Data... 4

More information

Getting Started with Access

Getting Started with Access MS Access Chapter 2 Getting Started with Access Course Guide 2 Getting Started with Access The Ribbon The strip across the top of the program window that contains groups of commands is a component of the

More information

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Microsoft Office 2010: Introductory Q&As Access Chapter 2 Microsoft Office 2010: Introductory Q&As Access Chapter 2 Is it necessary to close the Navigation Pane? (AC 78) No. It gives you more room for the query, however, so it is usually a good practice to hide

More information

Customizing Access Parameter Queries

Customizing Access Parameter Queries [Revised and Updated 15 August 2018] Everyone likes parameter queries! The database developer doesn't have to anticipate the user's every requirement, and the user can vary their enquiries without having

More information

TECHNOLOGY COMPETENCY ASSESSMENT MODULE Microsoft Access

TECHNOLOGY COMPETENCY ASSESSMENT MODULE Microsoft Access TECHNOLOGY COMPETENCY ASSESSMENT MODULE Microsoft Access This module was developed to assist students in passing the SkillCheck Incorporated Access 2003 Technology Competency Assessment. It was last updated

More information

ACCESS 2007 FOUNDATION

ACCESS 2007 FOUNDATION ACCESS 2007 FOUNDATION WWP Learning and Development Ltd Page i STUDENT EDITION LESSON 1 - EXPLORING ACCESS... 1 Introduction... 1 Opening An Existing Database... 4 Converting Existing Databases... 5 The

More information

Office of Instructional Technology

Office of Instructional Technology Office of Instructional Technology Microsoft Excel 2016 Contact Information: 718-254-8565 ITEC@citytech.cuny.edu Contents Introduction to Excel 2016... 3 Opening Excel 2016... 3 Office 2016 Ribbon... 3

More information

Microsoft Access Description

Microsoft Access Description Go To Page.. Go!! Microsoft Word Microsoft PowerPoint Microsoft Office Main Microsoft Excel Microsoft Publisher Introduction into Microsoft Access Starting Up Microsoft Access Creating New, and Opening

More information

Access Tutorial 6: Form Fundamentals

Access Tutorial 6: Form Fundamentals Access Tutorial 6: Form Fundamentals 6.1 Introduction: Using forms as the core of an application Forms provide a user-oriented interface to the data in a database application. They allow you, as a developer,

More information

MODULE 5 DATABASES. Content

MODULE 5 DATABASES. Content MODULE 5 DATABASES Module Goals Module 5 - Databases, requires candidates to understand some of the basic concepts of databases demonstrate the ability to use a database on a personal computer. Candidates

More information

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions Course contents Overview: Goodbye, calculator Lesson 1: Get started Lesson 2: Use cell references Lesson 3: Simplify formulas by using functions Overview: Goodbye, calculator Excel is great for working

More information

USING ODBC COMPLIANT SOFTWARE MINTRAC PLUS CONTENTS:

USING ODBC COMPLIANT SOFTWARE MINTRAC PLUS CONTENTS: CONTENTS: Summary... 2 Microsoft Excel... 2 Creating a New Spreadsheet With ODBC Data... 2 Editing a Query in Microsoft Excel... 9 Quattro Pro... 12 Creating a New Spreadsheet with ODBC Data... 13 Editing

More information

Division of School Facilities

Division of School Facilities Division of School Facilities Module 3 EXCEL HIDE/ FILTER/ SORT & PRINT New York City Department of Education Office of Enterprise Development and Support Applications Support Group 2011 TABLE of CONTENTS

More information

Using Reports. Access 2013 Unit D. Property of Cengage Learning. Unit Objectives. Files You Will Need

Using Reports. Access 2013 Unit D. Property of Cengage Learning. Unit Objectives. Files You Will Need Unit D CASE Samantha Hooper, a tour developer at Quest Specialty Travel, asks you to produce some reports to help her share and analyze data. A report is an Access object that creates a professional looking

More information

Using Microsoft Office 2003 Advanced Access Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.

Using Microsoft Office 2003 Advanced Access Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1. Using Microsoft Office 2003 Advanced Access Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.1 Fall 2005 Contents Downloading a Data File... 2 Creating a Macro...

More information

Access - Introduction to Queries

Access - Introduction to Queries Access - Introduction to Queries Part of managing a database involves asking questions about the data. A query is an Access object that you can use to ask the question(s). The answer is contained in the

More information

Microsoft Excel 2010 Handout

Microsoft Excel 2010 Handout Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track

More information

EXCEL 2003 DISCLAIMER:

EXCEL 2003 DISCLAIMER: EXCEL 2003 DISCLAIMER: This reference guide is meant for experienced Microsoft Excel users. It provides a list of quick tips and shortcuts for familiar features. This guide does NOT replace training or

More information

OpenForms360 Validation User Guide Notable Solutions Inc.

OpenForms360 Validation User Guide Notable Solutions Inc. OpenForms360 Validation User Guide 2011 Notable Solutions Inc. 1 T A B L E O F C O N T EN T S Introduction...5 What is OpenForms360 Validation?... 5 Using OpenForms360 Validation... 5 Features at a glance...

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

ListPro. Users Guide and Reference. Ilium Software. for Windows PCs, Windows Mobile, and iphone. Version 5.1

ListPro. Users Guide and Reference. Ilium Software. for Windows PCs, Windows Mobile, and iphone. Version 5.1 ListPro Users Guide and Reference for Windows PCs, Windows Mobile, and iphone Version 5.1 Ilium Software ListPro: Users Guide and Reference Ilium Software Published 8/11/2017 Copyright 2000 2017 Ilium

More information

MultiSite Suite: Accounts Payable

MultiSite Suite: Accounts Payable MultiSite Suite: Accounts Payable User s Manual version 6 Copyright & Trademarks Copyright Notice and Trademarks 2010 MultiSite Systems, All rights reserved. Microsoft, Windows, Excel, and Outlook are

More information

GAZIANTEP UNIVERSITY INFORMATICS SECTION SEMETER

GAZIANTEP UNIVERSITY INFORMATICS SECTION SEMETER GAZIANTEP UNIVERSITY INFORMATICS SECTION 2010-2011-2 SEMETER Microsoft Excel is located in the Microsoft Office paket. in brief Excel is spreadsheet, accounting and graphics program. WHAT CAN WE DO WITH

More information

IS2000. Administrative Operator s Guide

IS2000. Administrative Operator s Guide IS2000 Administrative Operator s Guide Table of Contents Logging Off... 7 Event Manager... 7 HARDWARE MANAGER... 8 Maneuvering the Hardware Tree... 8 Unlocking the Module... 8 Viewing the Hardware Tree...

More information

Section 1 Microsoft Excel Overview

Section 1 Microsoft Excel Overview Course Topics: I. MS Excel Overview II. Review of Pasting and Editing Formulas III. Formatting Worksheets and Cells IV. Creating Templates V. Moving and Navigating Worksheets VI. Protecting Sheets VII.

More information

Excel 2013 Intermediate

Excel 2013 Intermediate Excel 2013 Intermediate Quick Access Toolbar... 1 Customizing Excel... 2 Keyboard Shortcuts... 2 Navigating the Spreadsheet... 2 Status Bar... 3 Worksheets... 3 Group Column/Row Adjusments... 4 Hiding

More information

Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) Tips for Using Microsoft Excel and Exported Reports

Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) Tips for Using Microsoft Excel and Exported Reports Export a PROTECT Report to Excel (User s Guide Lesson 21 : Reports) 1. Run a PROTECT Export report 2. Click the Export button which is at far left on the toolbar in the PROTECT report window. 3. The Export

More information

Microsoft Access Lesson 3: Creating Reports

Microsoft Access Lesson 3: Creating Reports Microsoft Access Lesson 3: Creating Reports In the previous lesson the information you retrieved from a database always was in the form of a table. This may be all you need if you are the only person using

More information

User's Guide c-treeace SQL Explorer

User's Guide c-treeace SQL Explorer User's Guide c-treeace SQL Explorer Contents 1. c-treeace SQL Explorer... 4 1.1 Database Operations... 5 Add Existing Database... 6 Change Database... 7 Create User... 7 New Database... 8 Refresh... 8

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information