Exp19_Access_Ch10_Cap – Drivers 1.1

Exp19_Access_Ch10_Cap – Drivers 1.1

Exp19  Access Ch10 Cap Drivers 1.1

Access Chapter 10 Capstone – Drivers

Exp19_AC_CH10_GRADER_CAP_AS

  

Project Description:

You have been asked to modify a database that tracks driver data and insurance details. You will create macros to automate data entry, broadcast an informational message to users, navigate through a form, and to open forms. You will also set an SQL statement to filter a report when it opens.

     

Start   Access. Open the downloaded Access file named Exp19_Access_Ch10_Cap_Drivers. Grader has automatically added   your last name to the beginning of the filename. Save the file to the   location where you are storing your files.

 

Open   the Insurance table in Design   view. Add a new field named RenewTag   in the last position of the table with the data type Date/Time.

 

Create   a data macro attached to the Before Change event. Use the SetField Action to populate the   RenewTag field in the table. The RenewTag date will always be 21 days before the TagExpiration.

 

Add   the comment Sets the renewal date   for tag renewal. to the macro. Save and close the   macro. Save the table.

 

Switch   to Datasheet view of the Insurance table. Retype the TagExpiration in the   first record (InsuranceID 10001), and then press the DOWN ARROW. The macro will be triggered and automatically fill in   the RenewTag field with a date 21 days before the TagExpiration. Close the   table.

 

Open   the Insurance form in Design view. Add the RenewTag field to the form so that its label is aligned two dots   below and with the left edge of the TagExpiration label. Switch to Form view,   and then save and close the form.

 

Open   the Drivers report in Design view.   Create an embedded macro in the On Open property box.

 

Create   a message box to display Please upload this   report to Web site every Friday. (include the period).

 

Verify   that Yes is in the Beep box. Select   Information in the Type box. Type Upload Report in the Title box. Save and close the   macro. Save and then print preview the report. Ensure that the message   displays, click OK in the message   box, and then close the report.

 

Open   the Drivers form in Design view.   Add a command button aligned two dots below and with the left edge of the   Restrictions label.

 

Set   the button to navigate to the next record in the form and to display Next Record as the button text. Set cmdNextRecord as the button name. Save the form,   view the form in Form view and test the button.

 

Set   the Background Color of the button to Light   Blue (under Standard Colors) and italicize the button text. Save and   close the form.

 

Open   the Drivers report in Design view.   Type an SQL statement into the Record Source property of the report. The   statement should select all fields (*)   for drivers in the Adult class. Save the report. View the report in Report   view. Close the report.

 

Create   a standalone macro that will open the Insurance form in Form view and Normal   mode. Add an action to open the Drivers form in Form view and Normal mode.

 

Save   the macro as Open Forms   and close the macro. Run the macro from the Navigation Pane to test it and   then close all forms.

 

Close   all database objects. Close the database and then exit Access. Submit the   database as directed.

Tags: No tags