A
Adrian
How does VBA code delete a report without error 29068? Here's my code:
Private Sub apReportDelete(strReport As String)
If apReportExists(strReport, , True) Then
On Error Resume Next
'DoCmd.SelectObject acReport, strReport, False -makes no
difference to .DeleteObject
'Following wipes out in VBE: undo list, bookmarks, breakpoints
DoCmd.DeleteObject acReport, strReport 'Err 29068 in Acc2K but has
deleted report
If Err.Number > 0 Then Err.Clear
'RefreshDatabaseWindow
End If
End Sub
Private Sub apReportDelete(strReport As String)
If apReportExists(strReport, , True) Then
On Error Resume Next
'DoCmd.SelectObject acReport, strReport, False -makes no
difference to .DeleteObject
'Following wipes out in VBE: undo list, bookmarks, breakpoints
DoCmd.DeleteObject acReport, strReport 'Err 29068 in Acc2K but has
deleted report
If Err.Number > 0 Then Err.Clear
'RefreshDatabaseWindow
End If
End Sub