Results 1 to 5 of 5
  1. #1
    treckberg is offline Novice
    Windows 10 Office 365
    Join Date
    May 2020
    Posts
    3

    Bound main form locks subform

    Using Windows 10 Pro. Office 365 downloaded onto a PC.
    I'm at my wits end. I have distilled the problem to a very simple example:


    1. Bound (table, not query) Main Form with Single Form View, 1 bound textbox from the same table-- any subform of any type -- as soon as you enter or edit the text in the main form's textbox, the subform becomes inaccessible as if it were locked
    2. Unbound Main Form with Single Form View, 1 unbound textbox -- any subform of any type -- works fine
    Popup/Modal doesn't matter, all forms & controls Enabled & Unlocked, DataEntry=No, Additions/Deletions/Edits=Yes, Master/Child gives same result whether used or not
    Large split database with back and front ends.

    This doesn't seem like a lock issue because the problem occurs even when the subform is not attached to any data.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    If the main form is a new record, you cannot enter subform data until the main form is saved.

    If the main form record already exists (saved) and you edit, then you can edit subform data IF:
    you linked the subform to the main form via properties:
    LINK MASTER FIELD
    LINK CHILD FIELD

  3. #3
    treckberg is offline Novice
    Windows 10 Office 365
    Join Date
    May 2020
    Posts
    3
    Not a new record.
    My first try was with Master/Child links. It didn't work.
    Here is what I need to do:
    Main form is the record for Transaction #x. It contains everything about the Transaction except the deadlines which are kept in a different table.
    Subform is the "deadlines" for Transaction #x. I display it as a subform so it can be in continuous view and resize itself as needed.

    The record for the Transaction is not updated until the form closes so that the user can cancel if they need to. The user needs to be able to make changes in both forms. Is this not possible? What good is a subform if it's always locked?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Normally, record on bound main form will commit as soon as subform is selected. Otherwise, how could new main record and associated dependent records be created?

    I have no problem entering data into form/subform when master/child links are not set. The main record is still committed when subform gets focus.

    How do you prevent main record from committing when subform gets focus?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  5. #5
    treckberg is offline Novice
    Windows 10 Office 365
    Join Date
    May 2020
    Posts
    3
    I prevent the updates from taking effect by setting cancel to "true" in the beforeupdate event. I change cancel to "false" when the user selects the "keep it" button, then I close the form/subform and force an update. I've been doing this for years with great success as it has stopped a great many bad entries. So, clicking on the subform wouldn't cause a data update, but the system would know that no update occurred, so maybe that's why it won't let me inside the subform.

    This week was the first time I inserted a subform into the mix, and I didn't think about what the system might do if the update was stopped. I suppose I will need to resort to some sort of linked-forms system that forces them to process it sequentially -- not what I want, but at least it will get the job done.

    Thanks for the information.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-22-2019, 07:40 AM
  2. Replies: 56
    Last Post: 05-28-2017, 05:56 PM
  3. How to filter bound subform from unbound main form?
    By ittechguy in forum Programming
    Replies: 3
    Last Post: 10-25-2015, 09:12 PM
  4. Replies: 6
    Last Post: 10-11-2015, 03:47 PM
  5. Replies: 1
    Last Post: 01-16-2015, 09:28 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