Hi All:
I have a colleague who wants to control who can confirm a payment order. He doesn
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Secure Authorisation (2003)
If it’s basically a matter of preventing users from accidentally changing something they shouldn’t, it’s OK. But it’s not really secure. If a user ticks the check box “Hidden objects” in the View tab of Tools | Options…, the hidden table will be displayed in the Database window (and it’s a user-level setting, not a database-level setting).
Thanks Hans, that’s what I thought.
On a connected matter, is it possible to ‘lock’ the values of a record? i.e. once a payment has been confirmed, the authorisor could not go back and ‘un-authorise’ it, make changes and re-authorise?
If locking is not possible, the only thing I can think of is to populate a Date Authorised field with VBA when a payment is confirmed and use that field either to prevent further change or at least to report a later change.
You cannot lock a record in a table, but you can prevent users from editing it in a form based on the table. Since end users shouldn’t edit records directly in a table or query, that should be sufficient. Put code similar to the following in the On Current event procedure of the form:
Private Sub Form_Current()
Me.AllowEdits = Not Me.Confirmed
End Sub
Confirmed is the name of the Yes/No field you mentioned. As long as it is False, the user can edit the record, but if the user returns to a record after Confirmed has been set to True, the record is locked.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications