Results 1 to 8 of 8
  1. #1
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314

    Sub-form does not allow edits

    Even though all allows are yes and record lock is no, this sub-form, which used to allow edits, no longer does. I can edit the table directly, but not through this form. See attachment. Is there some other permission I don't know about?
    Click image for larger version. 

Name:	Screenshot 2022-11-05 212500.jpg 
Views:	32 
Size:	189.4 KB 
ID:	49046

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Make Data Entry = No
    The Yes setting will allow a form to only add new records, no viewing or editing old records.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Data Entry = No
    The most misnamed setting in Access
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    Quote Originally Posted by davegri View Post
    Make Data Entry = No
    The Yes setting will allow a form to only add new records, no viewing or editing old records.
    Thanks both of you. I changed the Data Entry property to "No" on the sub-form. So doing, while the sub-form is not in context with its parent form, I can now edit all the records. However, when I attempt to edit in the sub-form while it is in context with its parent form, it no longer allows editing. So, we are partway there. What else could be going on? I can edit in the parent form.

  5. #5
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    Even though I was able to edit in the parent form, I thought I would look at its properties. I found that the Additions, Deletions and Edits properties were set to "No." I changed them to "Yes," and then tried to edit the sub-form in context. I found that I can now edit in the sub-form. So, the issue is resolved.

    It is curious that I was still able to modify records in the parent form, even when those properties were set to "No".

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    That is odd because Edit No should not allow any editing to existing data in controls.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    Quote Originally Posted by June7 View Post
    That is odd because Edit No should not allow any editing to existing data in controls.
    If you look at the image I posted with my original query, you will see that the parent "Members" form is subordinate to the "Manage SCATeam" navigation form. I looked in the "Manage SCATeam" form and found that the Data Entry property is set to "No" and the several allows were all set to yes. So, it would seem that the settings for the parent form overrides the settings of its sub-form. This really is strange and unintuitive behavior.

    The original "Data Entry" setting for the top two was "no" and for the bottom form was "yes." The allow settings of the nested forms were as listed below, with the associated functionality:

    Top form: Data Entry= No, Allows = yes
    Subform: Data Entry = No, Allows = no (it can edit)
    Subform: Data Entry = Yes/No, Allows = yes/no (it cannot edit)

    Top form: Data Entry = No, Allows = yes
    Subform: Data Entry = No, Allows = yes/no (it can edit); When allows = yes, the subform can edit.
    Subform: Data Entry = Yes/No, Allows= yes/No (it can edit)

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Yes, it seems non-intuitive...and Data Entry is, indeed, one of the most odd names in Access (but only one of a number of odd names,) considering what it does (or doesn't do) but what you have to remember, to understand this, is that a Subform is a Control on the Form above it in the hierarchy. If Edits = No/False on the Main Form, the Subform Control on that Main Form cannot be 'edited,' which is how the Access Gnomes look at it!

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2018, 09:12 AM
  2. Replies: 9
    Last Post: 05-30-2017, 04:11 PM
  3. Printing Form that allows only certain edits.
    By Z1nkstar in forum Access
    Replies: 4
    Last Post: 07-11-2014, 08:38 AM
  4. Form won't allow edits
    By lawdy in forum Forms
    Replies: 5
    Last Post: 03-08-2014, 03:48 PM
  5. Create a form that edits a specific record
    By winteram in forum Forms
    Replies: 10
    Last Post: 07-28-2011, 11:46 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