AllStoredProcedures Collection Example
The following example prints the name of each open AccessObject object in the AllProcedures collection.
Sub AllStoredProcedures()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentData
' Search for open AccessObject objects in
' AllStoredProcedures collection.
For Each obj In dbs.AllStoredProcedures
If obj.IsLoaded = TRUE then
' Print name of obj.
Debug.Print obj.Name
End If
Next obj
End Sub