Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    New York
    Posts
    47

    Unanswered: Blocking edits after approval

    I have a form with an approval field. I need to lock the form so it can not be edited once it has been approved. I am clueless. The few things I have tried don't work and I don't think I am on the right track. Can someone help?

    Thanks
    Terri
    Terri Gavin

  2. #2
    Join Date
    May 2005
    Posts
    1,191
    There actually is a property for forms called AllowEdits that might be of use to you.
    Me.Geek = True

  3. #3
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,475
    Provided Answers: 11
    you will need to put the Code into the ONcurrent Event

    them If approval feild Ture then allowedit = False

    So

    Code:
    Private Sub Form_Current()
    
    If Me.approval = True Then
    Me.AllowEdits = False
    End If
    '
    '
    'Or
    'Me.AllowEdits = Not Me.approval
    
    End Sub
    hope this help

    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
    DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
    THEY'RE BEHIND YOU FOR A REASON

Posting Permissions

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