Lets say I wanted to change the "Allow Design Changes" parameter on all forms in a database to either "Design View Only" or to "All Views" via code, can this be done.
The following does not work (be nice if it did):
Public Function frmNoEdit()
Dim MyDB As Database
Dim MyForm As form
Set MyDB = CurrentDb()
For Each MyForm In MyDB
MyForm.AllowDesignChanges = False
Next MyForm
MyDB.Close
Set MyDB = Nothing
End Function
I get the error "Operation is not supported for this type of object" on the "For Each MyForm in MyDB" line.
Thoughts?
Thanks
The following does not work (be nice if it did):
Public Function frmNoEdit()
Dim MyDB As Database
Dim MyForm As form
Set MyDB = CurrentDb()
For Each MyForm In MyDB
MyForm.AllowDesignChanges = False
Next MyForm
MyDB.Close
Set MyDB = Nothing
End Function
I get the error "Operation is not supported for this type of object" on the "For Each MyForm in MyDB" line.
Thoughts?
Thanks