W
Wolfgang Kais
Dear Newsgroup.
A few days ago, I encountered a problem using a custom property in an
Access 97 database. I created the property using the database properties
window from the file menu. I wrote code like this to read and write the
property in a module:
Function GetMyProperty() As Date
With CurrentDb
With .Containers("Databases")
With .Documents("UserDefined")
GetMyProperty = .Properties("MyProperty")
End With
End With
End With
End Function
Sub LetMyProperty(NewDate As Date)
With CurrentDb
With .Containers("Databases")
With .Documents("UserDefined")
.Properties("MyProperty")= NewDate
End With
End With
End With
End Sub
Accessing the property using these procedures is no problem, as long as
I am logged on to the workspace as the owner of the database.
When a simple user is logged on, he can read the property but when he
tries to change the value he receives an error message stating that he does
not have sufficient permissions on the UserDefined object.
So I granted him permissions using the dbSecFullAccess constant, but he
still gets the same error.
What permissions have to be granted to a user that needs to read and
write a custom property of the UserDefined document?
A few days ago, I encountered a problem using a custom property in an
Access 97 database. I created the property using the database properties
window from the file menu. I wrote code like this to read and write the
property in a module:
Function GetMyProperty() As Date
With CurrentDb
With .Containers("Databases")
With .Documents("UserDefined")
GetMyProperty = .Properties("MyProperty")
End With
End With
End With
End Function
Sub LetMyProperty(NewDate As Date)
With CurrentDb
With .Containers("Databases")
With .Documents("UserDefined")
.Properties("MyProperty")= NewDate
End With
End With
End With
End Sub
Accessing the property using these procedures is no problem, as long as
I am logged on to the workspace as the owner of the database.
When a simple user is logged on, he can read the property but when he
tries to change the value he receives an error message stating that he does
not have sufficient permissions on the UserDefined object.
So I granted him permissions using the dbSecFullAccess constant, but he
still gets the same error.
What permissions have to be granted to a user that needs to read and
write a custom property of the UserDefined document?