For this project, you enhance the functionality of the database for a friend’s music collection

I don’t know how to handle this MySQL question and need guidance.

For this project, you enhance the functionality of the database for a friend’s music collection. Recall that in Guided Project 4-1 you used the Report Wizard to create a report that shows all the songs on each album. For this project, you create an improved report that is grouped by artist and shows all the albums and song details. You use Design view to create the main report and the subreport and customize the report in Design view to add sections, add and edit controls, and add a running total. Finally, you create and customize a clustered bar chart in a new report.

  1. Open the MusicDatabase-06 database start file.
  2. The file will be renamed automatically to include your name. Change the project file name if directed to do so by your instructor
  3. Enable content in the security warning.
  4. Build the main report. To provide context for the steps in the project, view the completed report in Figure 6-118.
    1. Click the Report Design button [Create tab, Reports group] to open a new report.
    2. Click the Property Sheet button [Report Design Tools Design tab, Tools group] and the Format tab if necessary.
    3. Enter 7″ in the Width property.
    4. Click the Data tab.
    5. Click the drop-down arrow in the Record Source property and select the Albums table.
    6. Click the Add Existing Fields button [Report Design Tools Design tab, Tools group] to open the Field List.
    7. Double-click the AlbumName and Artist fields to add them into the Detail section.
    8. Save the report as SongListingOnAlbumsByArtist.
  5. Add a group section to the report.
    1. Click the Group & Sort button [Report Design Tools Design tab, Grouping & Totals group] to open the Group, Sort, and Total pane at the bottom of the report.
    2. Select the Add a group option in the Group, Sort, and Total pane.
    3. Select the Artist field from the field list.
    4. Click the More button in the Group, Sort, and Total pane to display the available options (Figure 6-114).
      Images
      Figure 6-114
      Group, Sort, and Total pane
    5. Change the without a footer section option to with a footer section.
    6. Change the do not keep group together on one page option to keep whole group together on one page.
    7. Close the Group, Sort, and Total pane by clicking the X on the Group, Sort, and Total pane header. Be careful not to click the Delete button inside the pane or you will remove the group.
    8. Save the changes made to the report.
  6. Modify the report.
    1. Move your pointer to the bottom edge of the Page Header section. The pointer changes to the resize arrow. Move the resize arrow up to the Page Header bar to remove the space in the section.
    2. Right-click inside the report to open the context menu.
    3. Select the Report Header/Footer option to add Report Header and Report Footer sections to the report.
    4. Click inside the Report Header section.
    5. Press F4 to open the Property Sheet and click the Format tab if necessary.
    6. Enter .5″ in the Height property.
    7. Click inside the Artist Header section.
    8. Enter .3″ in the Height property.
    9. Follow the same steps to set the Height property of the Artist Footer section and Page Footer section to .25″, if necessary, and the Detail section to 2″.
    10. Add a label control into the Report Header section and type Songs on My Albums into the label.
    11. Select the label and enter 1.8″ in the Width property, .25″ in the Height property, .15″ in the Top property, 2.7″ in the Left property, 14 in the Font Size property, select Bold in the Font Weight property, and Yes in the Font Italic property.
    12. Click the Page Numbers button [Report Design Tools Design tab, Header/Footer group].
    13. Select the Page N of M radio button, the Bottom of Page [Footer] radio button, and Center alignment.
    14. Click OK.
    15. Select the Artist text box. Press and hold the Shift key and select the Artist label. Both controls should be selected.
    16. Drag the selected controls into the Artist Header section. Click anywhere to deselect both controls.
    17. Select the Artist text box and enter 2.5″ in the Width property, .03″ in the Top property, and 1.5″ in the Left property, and select Transparent in the Border Style property. When entering property values, don’t worry if Access slightly changes a few of the values (for example, .03″ becomes .0299″).
    18. Select the Artist label and enter Recording Artist in the Caption property, 1.1″ in the Width property, .03″ in the Top property, and .35″ in the Left property.
    19. Select the AlbumName label and enter Album in the Caption property, .5″ in the Width property, .05″ in the Top property, and .35″ in the Left property.
    20. Select the AlbumName text box and enter 3.5″ in the Width property, .05″ in the Top property, and 1″ in the Left property, and select Transparent in the Border Style property. The report should look similar to Figure 6-115.
      Images
      Figure 6-115
      Design view of the main report
    21. Save and close the report.
  7. Build the subreport.
    1. Click the Report Design button [Create tab, Reports group] to create a new report.
    2. Press F4 to open the Property Sheet and click the Format tab if necessary.
    3. Type 6″ in the Width property.
    4. Click the Data tab.
    5. Click the drop-down arrow in the Record Source property and select the Songs table.
    6. Click the Add Existing Fields button [Report Design Tools Design tab, Tools group] to open the Field List.
    7. Add the SongTitle and Length fields into the Detail section. The Length text box should be selected.
    8. Press and hold the Shift key and select the SongTitle text box.
    9. Click Tabular [Report Design Tools Arrange tab, Table group].
    10. Press F4 to open the Property Sheet and click the Format tab if necessary.
    11. Enter .02″ in the Top property.
    12. Right-click inside the report to open the context menu.
    13. Select the Report Header/Footer option to add Report Header and Report Footer sections to the report.
    14. Select both label controls in the Page Header section.
    15. Click the Move Up button [Report Design Tools Arrange tab, Move group].
    16. Enter .2″ in the Height property and .02″ in the Top property.
    17. Right-click inside the report to open the context menu.
    18. Select the Page Header/Footer option to delete the Page Header and Footer sections.
    19. Click the Report Header section bar and enter .25″ in the Height property.
    20. Follow the same steps to set the Height property of the Detail and Report Footer sections to .25″ if necessary. The report should be similar to Figure 6-116.
      Images
      Figure 6-116
      Design view of the subreport
    21. Save the report as SongsSubreport.
    22. Close the report.
  8. Add the subreport to the main report.
    1. Open the SongListingOnAlbumsByArtist report in Design view.
    2. Click the Subform/Subreport button [Report Design Tools Design tab, Controls group].
    3. Click inside the Detail section of the report, close to the left border, below the Album label. The SubReport Wizard launches.
    4. Select the Use an existing report or form radio button. The SongsSubreport report should be highlighted in the list.
    5. Click Next.
    6. Accept the Choose from a list radio button and the Show Songs for each record in Albums using AlbumID statement and click Next.
    7. Accept the suggested name for the subreport and click Finish. The subreport is added into the main report.
    8. Switch to Layout view (Figure 6-117). Verify that the subreport is correctly linked to the main report.
      Images
      Figure 6-117
      Layout view of the main report after adding the subreport
    9. Save the report.
  9. Customize the main report and subreport.
    1. Switch to Design view.
    2. Click to select the SongsSubreport label.
    3. Press Delete.
    4. Select the subreport.
    5. Enter .4″ in the Top property, 1″ in the Left property, and select Transparent in the Border Style property.
    6. Save and close the report.
  10. Open the SongsSubreport in Design view.
    1. Open the Property Sheet and click the Format tab if necessary.
    2. Select both the Length text box and label.
    3. Enter .5″ in the Width property.
    4. Select both the SongTitle text box and label.
    5. Enter .2″ in the Left property and 4.7″ in the Width property.
    6. Select the Report Footer section bar and enter .3″ in the Height property.
    7. Add a text box control to the Report Footer section.
    8. Click the Data tab and then click the Build button on the Control Source property.
    9. Type =Count([SongTitle]) into the Expression Builder and click OK.
    10. Click the Format tab, and enter .35″ in the Width property, .2″ in the Height property, .02″ in the Top property, and 4.6″ in the Left property of the text box.
    11. Select the label control of that text box.
    12. Enter Total number of songs: in the Caption property, 1.55″ in the Width property, .2″ in the Height property, if necessary, .02″ in the Top property, and 3″ in the Left property.
    13. Save and close the report.
  11. Open the SongListingOnAlbumsByArtist report in Design view.
    1. Click the Detail section bar and enter 1.4″ in the Height property.
    2. Add a text box control to the Artist Footer section.
    3. Delete the label control of that text box.
    4. Select the text box, and on the Data tab click the Build button in the Control Source property.
    5. Type =”Total number of albums by & [Artist] & “:” into the Expression Builder and click OK.
    6. Click the Format tab and enter 3.3″ in the Width property, .2″ in the Height property, .02″ in the Top property, .7″ in the Left property, and select Right in the Text Align property.
    7. Add another text box control to the Artist Footer section.
    8. Delete the label control of that text box.
    9. Select the text box, and on the Data tab click the Build button in the Control Source property.
    10. Enter =Count([AlbumName]) into the Expression Builder and click OK.
      Images
      Figure 6-118
      Print Preview view of completed report
    11. Click the Format tab, and enter .2″ in the Width property, .2″ in the Height property, .02″ in the Top property, and 4.1″ in the Left property, and select Left in the Text Align property.
    12. Enter .25″ in the Height property of the Artist Footer section.
    13. Save the report.
    14. Switch to Print Preview view. The completed report should look similar to Figure 6-118. Notice how Adele’s name appears only once, at the top of both of her albums. This is because Artist is the grouping header.
    15. Navigate to page 5 and then 6 of the report. Notice how Cristian Castro’s data starts on the top of page 6 instead of near the bottom of page 5. This is because keep the whole group together on one page is selected in the grouping options.
    16. Click the Close Print Preview button.
    17. Close the report.
  12. Create a report for the chart.
    1. Click the Report Design button [Create tab, Reports group] to open a new report.
    2. Press F4 to close the Property Sheet if necessary.
    3. Save the report as AlbumDataChart.
  13. Create a clustered bar chart.
    1. Click the Insert Chart button [Report Design Tools Design tab, Controls group] to display the list of available charts.
    2. Select Bar from the list and then select Clustered Bar from the additional set of available charts.
    3. Move the pointer into the Detail section of the report, and click to insert the chart.
  14. Customize the chart data.
    1. Click Data in the Chart Settings pane, if not already selected.
    2. Select the Tables radio button in the Data Source section.
    3. Click the drop-down arrow in the Data Source box and select Albums.
    4. Select Genre as the Axis (Category) field.
    5. Select AlbumID as the Values (Y axis) field.
      Images
      Figure 6-119
      Design view of completed Albums by Genre chart
    6. Hover over the AlbumID field and then click the arrow to display the list of aggregation choices.
    7. Select Count.
  15. Modify the chart properties.
    1. Click the Property Sheet button [Report Design Tools Design tab, Tools group].
    2. Enter 4.5″ in the Width property, 4″ in the Height property, .5″ in the Top property, and 1″ in the Left property.
    3. Select No in the Has Legend property.
    4. Enter Albums by Genre in the Chart Title property.
    5. Enter 16 in the Chart Title Font Size property.
    6. Enter Number of Albums in the Primary Values Axis Title property.
    7. Press F4 to close the Property Sheet.
    8. Save the report. The completed chart should look similar to Figure 6-119.
  16. Close the report.
Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount