Results 1 to 6 of 6
  1. #1
    eorosz is offline Novice
    Windows 11 Office 365
    Join Date
    Jan 2025
    Posts
    1

    Angry Unable to edit fields in a sub form


    Hello, I'm having trouble trying to figure out where in a subform I can't edit certain fields. I tried checking in the propert sheet in design mode to see if the edits are allowed on the table and everything looks correct but not sure. I honestly don't know how the database was built but I found an old form with the same setup that isn't locked down and can't seem to find what or where that controls it so I can duplicate in on the active subform.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Suggest you provide db for analysis. Follow instructions at bottom of my post.

    Apparently, not the same setup, something has to be different. Old form was where, in same db? You did not build newer form?
    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.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    If you cannot edit certain fields then it will not be the AllowEdits property of the form.
    If not set in properties for the control, then there could be code that sets that property. Normally due to a value in the Tag property of the control.
    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
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    I don't think you've provided enough information to answer your question. What is the source of the subform? A table or a query? If you are using a query as a source and it has calculated columns then you won't be able to edit those. Could you please post the source of the subform (if it's a query, the SQL of the query). If it's a table, something else is going on.

  5. #5
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    It may be based on a query that is not editable. If the form recordsource property is shown and it's a query, open that query and try to edit it.
    http://allenbrowne.com/ser-61.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    This is an interesting thread, as my colleague started to experience this on an existing database yesterday after doing some updates to the main form.

    It was extremely strange the symptoms were as follows:

    • All the subforms were set to allow edits = true, allow additions = true, data entry =no.
    • If they were opened separate from the main form they all behaved perfectly.
    • On the main form, they were completely locked, without additions being allowed, yet there was no code to set those attributes anywhere.
    • On certain sub forms there was explicit code to unlock/lock the subform control that was also being ignored.
    • Even removing that code made no difference.
    • We debug.printed the properties of the sub forms on load and after the current events and they were all reporting allow edits = False, allow additions = False, despite the code to explicitly unlock them.


    We spent at least 90 minutes on it, trying various "fixes" and fault diagnosis. We put it down to corruption in the end, and he's reverted to a back up and will redo the work.
    I can't post an example very easily as there is a lot of proprietary data/client related info on nearly all the forms, and it would take a few hours to obfuscate it unfortunately.

    O365 with recent updates - same symptoms on my machine Microsoft® Access® for Microsoft 365 MSO (Version 2412 Build 16.0.18324.20092) 64-bit
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 2
    Last Post: 04-09-2023, 12:02 AM
  2. Sub forms and sub-sub forms
    By Satanskittens in forum Forms
    Replies: 11
    Last Post: 06-09-2020, 03:40 PM
  3. Forms, Sub Forms and Sub Sub Forms Advice
    By Mattyn in forum Access
    Replies: 1
    Last Post: 07-21-2016, 10:28 AM
  4. Replies: 6
    Last Post: 08-31-2015, 09:50 AM
  5. Replies: 2
    Last Post: 04-29-2012, 02:22 PM

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