Share via

locking records

Anonymous
2020-09-29T01:27:33+00:00

hi everyone 

im creating a database to manage a money exchange company that has multiple employees, the adminstrator wants two features in the databse

1_locking every record at midnight so that they cant be modified or deleted by users later.

2_to create a form that has one field which is a special password to enable him to modify or delete a record, in short(the records have ID's when he enters the id to call the record for editing if its past midnight or later the record is locked and can't be deleted or edited so if he wants to edit it there is an endit button and on clickibg it a form opens asking for the special password "not his login password" and when he enters it the record is unlocked and can be edited and deleted)

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2020-09-29T18:13:30+00:00

    While I agree with Tom and Don, there are things you can do to provide a level of security that will inhibit all but a dedicated person. 

    First, you need to create a menu system for the application so that users only see this menu when they log in. 

    Second, you to hide the Nav Pane and disable Special Access keys.

    Third, you need to compile the app to an accde and distribute that as a front end.

    Fourth, you need to establish Traverse access to the folder where the back end resides so users cannot navigate to that folder. 

    Fifth, the menu system should open a form. On that form, in the On Open event you would lock the form against editing if the date was earlier than the current date. Also on that form would be an edit button that would prompt for a password to override the form lock.

    Sixth, you would put a data macro on the table to audit any changes to the table just in case someone does get that far. 

    With those provisions, you would defeat all but the most determined hackers.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2020-09-29T16:51:51+00:00

    Why not have a field to track when entries are made and lock the fields/form of the entry is prior to the current date.

    Then create a user table with a field for the role and assign user or admin to each user.  Then in the form check the role and disable the above check if the user is an admin.

    That all said, Tom is right that if you want Rock solid security this type of thing is more suited for an SQL Server back-end.

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2020-09-29T04:16:36+00:00

    This level of security is more than can be expected of Access. Please look into a SQL Server back-end database for this. The free Express Edition would suffice for a dozen or so users.

    Was this answer helpful?

    0 comments No comments