Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Beddau, Mid Glamorgan, Wales
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Secure Authorisation (2003)

    Hi All:

    I have a colleague who wants to control who can confirm a payment order. He doesn
    Regards,

    Tony
    [s] [/s]
    www.SylviArtist.com

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: 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).

  3. #3
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Beddau, Mid Glamorgan, Wales
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Secure Authorisation (2003)

    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.
    Regards,

    Tony
    [s] [/s]
    www.SylviArtist.com

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Secure Authorisation (2003)

    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.

  5. #5
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Beddau, Mid Glamorgan, Wales
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Secure Authorisation (2003)

    That's great, Hans. Just what I needed.

    Many Thanks.
    Regards,

    Tony
    [s] [/s]
    www.SylviArtist.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •