F
FreeWheel
HHHHHEEEELLLLLLPPPPPP anyone !
How do I Lock / Unlock my VBA project for viewing from a module within ?
I got this code in a Module which behaves properly only when the VBA project
lock for viewing is OFF.
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
I need to set the lock OFF ahead of this piece of code and back ON right
after it.
After spending too many evenings on the WEB searching....., I can only find
PASSWORD RECOVERY utilities which work but I do not need.... I need what's
inside !
What do I need to set / reset ?
How do I Lock / Unlock my VBA project for viewing from a module within ?
I got this code in a Module which behaves properly only when the VBA project
lock for viewing is OFF.
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
I need to set the lock OFF ahead of this piece of code and back ON right
after it.
After spending too many evenings on the WEB searching....., I can only find
PASSWORD RECOVERY utilities which work but I do not need.... I need what's
inside !
What do I need to set / reset ?