Create a named report : Report « Access « VBA / Excel / Access / Word






Create a named report

 
Sub NewReport()
    Dim myReport As Report
    Dim strReportName As String

    strReportName = "myReport"
    Set myReport = CreateReport
    DoCmd.Save , strReportName
    DoCmd.Close , , acSaveYes
End Sub

 








Related examples in the same category

1.Creating an Empty Report
2.Open report
3.Adding Controls to the Report
4.Print preview Report