Option Compare DatabaseOption Explicit
'------------------------------------------------------------
' Run_Risk_Assessment_Report1
'
'------------------------------------------------------------
Function Run_Risk_Assessment_Report1()
On Error GoTo Run_Risk_Assessment_Report1_Err
DoCmd.SetWarnings False
' Clear out the Master Report Table
DoCmd.OpenQuery "Clear out the Master Report Table", acViewNormal, acEdit
' Run the query to make / update the Main Report Table
DoCmd.OpenQuery "A) Rpt Qry - Select Data Master", acViewNormal, acEdit
' update the grand totals
DoCmd.OpenQuery "Update Grand Total", acViewNormal, acEdit
' update the percentages in the Main Report Table
DoCmd.OpenQuery "Update Percentages in Report Master Report Table", acViewNormal, acEdit
' Runs the report
DoCmd.OpenReport "Risk Assessment Summary", acViewNormal, "", "", acNormal
Run_Risk_Assessment_Report1_Exit:
Exit Function
Run_Risk_Assessment_Report1_Err:
MsgBox Error$
Resume Run_Risk_Assessment_Report1_Exit
End Function