Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    2

    Unanswered: Write protecting forms

    I have used a database that had a write protect and unprotect feature available on the forms and the user is able to toggle between the two modes by clicking on a button. Does anyone know how to implement this?

  2. #2
    Join Date
    Nov 2003
    Posts
    1,487
    Place a Toggle Button control onto your form. In the On Click event of the Toggle button, place code similar to what is shown below:
    Code:
    If Me.myLockButtonName.Value = True Then
        Me.AllowEdits = False
        Me.AllowDeletions = False
    Else
        Me.AllowEdits = True
        Me.AllowDeletions = True
    End If
    Me.Refresh
    Hope this helps

Posting Permissions

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