F
FreeWheel
Hi everyone !
I've got this code in an Access 2000 database project running with Access
2003 which will do as expected only if the "project properties display
protection password" is not set;
If dbs.AllReports.Count > 0 Then
For num = dbs.AllReports.Count To 1 Step -1
itemnum = num - 1
Set obj = dbs.AllReports(itemnum)
If obj.IsLoaded = False Then
DoCmd.DeleteObject acReport, obj.Name
Else
End If 'obj.IsLoaded
Next num
Else
End If 'AllReportsCount
What do I need to do in order to get the objects (in this case the reports)
deleted while the "project properties display protection password" is set ?
I've got this code in an Access 2000 database project running with Access
2003 which will do as expected only if the "project properties display
protection password" is not set;
If dbs.AllReports.Count > 0 Then
For num = dbs.AllReports.Count To 1 Step -1
itemnum = num - 1
Set obj = dbs.AllReports(itemnum)
If obj.IsLoaded = False Then
DoCmd.DeleteObject acReport, obj.Name
Else
End If 'obj.IsLoaded
Next num
Else
End If 'AllReportsCount
What do I need to do in order to get the objects (in this case the reports)
deleted while the "project properties display protection password" is set ?