My function for exporting all reports is not working.Would yo help me find the reason ?
Private Function ExportAllObjects()
Dim Rpt As AccessObject
For Each Rpt In CurrentProject.AllReports
DoCmd.TransferDatabase acExport, "Microsoft Access", StrSurvey, acReport, Rpt.Name, Rpt.Name
Next Rpt
End Function
Private Function ExportAllObjects()
Dim Rpt As AccessObject
For Each Rpt In CurrentProject.AllReports
DoCmd.TransferDatabase acExport, "Microsoft Access", StrSurvey, acReport, Rpt.Name, Rpt.Name
Next Rpt
End Function