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 . 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 in Design view. Add a new field named in the last position of the table with the data type . Create a data macro attached to the Before Change event. Use the to populate the RenewTag field in the table. The RenewTag date will always be days before the TagExpiration. Add the comment 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 . 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 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 in Design view. Create an embedded macro
in the On Open property box. Create a message box to display (include the period). Verify that is in the Beep box. Select in the Type box. Type in the Title box. Save and close the macro. Save and then print preview the report. Ensure that the message displays, click in the message box, and then close the report. Open the 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 as the button text. Set 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 (under Standard Colors) and italicize the button text. Save and close the form. Open the 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 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.