Ziphius Posted April 24, 2012 Posted April 24, 2012 I may be in the wrong topic forum here. This database is used by "Users" who add new records to the database each day. At the end of the day I want to lock those records so they can't be modified by the "User" the following day. There is an "Admin" login (Username: Admin, Password:Admin) for full access to all records, and a "User" login (Username:User, Password:User), which should allow new records to be added but old records can't be modified. To do this, I've created a "Lock" field that defaults to 1 with each new record. At the end of the day, the Admin changes all the lock fields to a 0 using a script (see script). Then the custom privileges for "User" is suppose to be set such that "if lock = 0" then access to those records is denied. I can't seem to get that to work properly. Any help here would be much appreciated. Full Access - Username:Admin, Password:Admin Limited Access - Username:User, Password:User LockingRecords.fp7.zip
mr_vodka Posted April 24, 2012 Posted April 24, 2012 I would probably say to reverse it where the 1 is the lock and if its locked then prohibit modification of the record. LockingRecords_Mod.zip
Lee Smith Posted April 25, 2012 Posted April 25, 2012 Automatic message This topic has been moved from "Database Schema & Business Logic → Custom Functions" to "Database Schema & Business Logic → Managing Scripts".
Recommended Posts
This topic is 4595 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