hassam36 Posted June 4, 2007 Posted June 4, 2007 Hello I want to set conditional privileges in certain tables/forms where each user will only have access to certain records (multiple records). I have stored the values of the accessable records in a global array for each user. However, I am not sure how to access all the values in the array in the 'custom privileges' calculation dialogue box and set the appropriate field (in this instance primary key) equal to each one separately. I'm not sure if this is clear or not, but, if so, any ideas?
Steven H. Blackwell Posted June 5, 2007 Posted June 5, 2007 Well, sorry to say, it's not clear, at least not to me. If what you're wanting to accomplish is to limit access to records to certain suers, all of whom have the same privileges, then you'll want to use Record Level Access. In the Privilege Set definitions under the access to tables section, set a calculation that provides the test for a user to meet. For example, a user can see on;y those records he or she created. Steven
Genx Posted June 5, 2007 Posted June 5, 2007 A warning on a different note here -- Don't use globals for this i.e. you can have a table somewhere storing individual records for each user and then you set the global when you open the file -- but do not make the assumption that your global will retain it's value when you close a file.
Steven H. Blackwell Posted June 5, 2007 Posted June 5, 2007 Who said anything about a global? I didn't say that. Steven
Genx Posted June 5, 2007 Posted June 5, 2007 I have stored the values of the accessable records in a global array for each user. No... you didn't and I wouldn't have mentioned it if you did.
Recommended Posts
This topic is 6379 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now