To Homework

IT 240 -- Homework H5

A Sports League Database

Due date: Wednesday, May 21, 2008

Reference:   The Midwest League logo     Midwest League website


In this assignment we will visit the concept of a user interface that ties the objects in a database together, so that the database is easy to use. The switchboard displays a menu, often a series of menus, which enables a nontechnical person to move easily from one Access object to another. Any database containing a switchboard is known as an application and, unlike an ordinary Access database, it does not require knowledge of Microsoft Access on the part of the user.

We'll also do a little with macros and prototypes, two techniques that are used by developers in creating applications. A macro automates common sequences and further simplifies the system for the end user. Prototypes are used in conjunction with developing the various switchboards to demonstrate the "look and feel" of an application, even before the application is complete.

Many of you have probably played in a sports league at one time or another (e.g., Little League, intramural league at school or a league at work). All of this applies equally well whatever the league, fun, semi-pro, professional - there are teams, players, and coaches. The typical league registers the players and coaches individually, then holds a draft among the coaches to divide the players into teams according to ability. The league may have been organized informally, with manual procedures for registering the participants and creating the teams. But we are going to automate the process.

In addition to the tables (teams, players, coaches), the database will contain multiple forms, queries, and reports based on the tables. A Players form is necessary in order to add a new player, or edit or delete the record of an existing player. A similar form should exist for Coaches. There might also be a sophisticated main and subform combination for the Teams table that displays the players and coaches on each team, and through which data for any table (Team, Player, Coach) can be added, edited, or deleted. And, of course, there will be a variety of reports and queries.

Here is the Main Switchboard that will be used for this application. (You won't need to implement the sixth button, Player Draft, for this version.) The midwest sports logo was added, but the application, pretty much, applies to any type of sports league. An interface should be intuitive and easy to use. Click the About Sports button and the system displays the information screen. Click other buttons and the indicated form displays or the Close Form button to return to the main menu.  Okay, after this introduction, let's get started.

Warning: From now, and until the end of the class, our databases will contain Macros. I won't get into details here, but for the one or two students that have been using Access 2007, I would highly recommend using 2003 from now on in this class.

  1. The Midwest Sports League Database

  2. Create the Switchboard

  3. Add Your Record

  4. Complete the Data Entry

  5. Create the AutoExec Macro   (Note: If you do the Extra Feature, see step 10, then skip this step)

  6. Create the Prototype Macro

  7. Create the Close Database Macro

  8. Create the Report Switchboard

  9. Modify the Main Switchboard

  10. Extra Feature

  11. Completely test both your Main Switchboard and your Report Switchboard - make sure all the macros are functioning properly. Also, close your database and then re-open it to test that the AutoExec macro is working properly. The design of the switchboards should be consistent with all other database objects.

  12. After you're sure everything is okay and just before you submit your database, pull down the Tools menu, click the Database Utilities command, and Compact and Repair Database.

  13. Your database file must be called H5-Smith.mdb, where Smith is your last name.
    Submit your H5-Smith.mdb file using COLweb.