Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791

    Why don't you just toggle the 'AllowEdits' and 'AllowDeletions' properties on the form?
    Hope you get an answer to that 'cause I didn't.

  2. #17
    irish634 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2012
    Posts
    48
    Quote Originally Posted by Micron View Post
    Hope you get an answer to that 'cause I didn't.
    Sorry. I inadvertently skipped over your post.... I didn't think anyone suggested it.
    Much simpler.

  3. #18
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    Quote Originally Posted by irish634 View Post
    Sorry.
    NP. I do it all the time. It wasn't really meant to solicit an response from you as opposed to the one to whom it was originally asked.

  4. #19
    ortizimo is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2017
    Location
    FL
    Posts
    88
    The only thing I found using this DB in 2003 and 2016 was that not using the split-form will NOT lock the entire DB. Otherwise the old DB I made under 2003 originally works fine under split-form. Not sure why but I made it back in 2006 so there may be "bad/novice" code in there that lets it work fine. Investigating this will take more time than I have to post results here. If no one objects I will close this as resolved. Thanks for all your help on the matter.

  5. #20
    ortizimo is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2017
    Location
    FL
    Posts
    88
    Quote Originally Posted by irish634 View Post
    Why don't you just toggle the 'AllowEdits' and 'AllowDeletions' properties on the form?

    In design mode, set the form properties:
    AllowAdditions = True
    AllowEdits = False
    AllowDeletions = False

    Then just toggle them:

    If you have an 'edit' button do something like this:
    Code:
    Private Sub cmd_Edit_Click()
    
        Me.AllowEdits = True
        Me.AllowDeletions = True
        
    End Sub
    Then when you click a 'save' button do the opposite:
    Code:
    Private Sub cmd_Save_Click()
    
        Me.AllowEdits = False
        Me.AllowDeletions = False
        
    End Sub
    It just seems to me you are going through an awful lot of programming when this may suffice...
    i am sort of new at this and therefore I dont know all the short cuts ai can use. I will try this one and see if I can consolidate the code better. thanks for your help!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 11-13-2017, 02:09 PM
  2. Clear all checkboxes on form
    By Tommo in forum Modules
    Replies: 6
    Last Post: 10-08-2015, 03:04 PM
  3. How to loop through all checkboxes on form?
    By archaeofreak in forum Programming
    Replies: 9
    Last Post: 09-16-2013, 01:55 PM
  4. Disable Checkboxes for a row in Form
    By seshan in forum Programming
    Replies: 1
    Last Post: 02-05-2010, 07:36 PM
  5. Useless and needs help
    By asmith61 in forum Access
    Replies: 1
    Last Post: 08-10-2009, 07:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums