According to documents AllowLayoutView is a Read/Write property.
This is a part of a test:
IsAdmin is a function to check if current user is a member of Admin group.
Running this code, I receive the following error.
To Set this property, open the form or report in Design view
thank you.
-
This is a part of a test:
SQL:
Public Sub PrepareForm(frm As Access.Form)
......
.AllowLayoutView = IsAdmin
......
End Sub
IsAdmin is a function to check if current user is a member of Admin group.
Running this code, I receive the following error.
To Set this property, open the form or report in Design view
- If it's said AllowLayoutView can be set in vba, why I receive this error. It doesn't make sense to open a form in design view, change a property, save it and open it again in VBA.
- Is it possible to allow some users being able to use layout view and others not dinamically?
thank you.
-