Results 1 to 3 of 3
  1. #1
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328

    err msg "could not update, locked by anothr------"

    I have a single form. When an item is selected by a combo box on the form, its id is inserted into a field on the main form for use in calculations later.



    To make changes in the combo box source table, the user can click a button that opens a popup form that contains a list of Sail types and numerical factors. Fields are locked.

    After the user enters a password, the subform unlocks the factor field to permit changes.

    My problem is that when I close the popup form after a change, I get the message "Could not update, locked by another session on this machine".

    There is no other "session". I have two similar setups for other Sail types and neither gives me this problem.. I even recreated the pop up source table and the popup form and same problem. Must be related to the main form, but how?

    One thing I tried, from another help site was to modify code opening the sub from the main form to show "If Me.Dirty Then Me.Dirty = False." Didn't help. I couldn't find anything else that applied to this situation.

    I am using A2007. All tables are linked to a separate file holding only tables. No one else is using tables when error message occurs.
    Any help much much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    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.

  3. #3
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328
    Thanks for quick reply. I "solved" it by creating a new master form, just copying controls from the old one to the new one -works fine. After comparing "bad vs good", I found that, somehow, the master form's Record Locks property of "bad" was set to "Lock on Edit". I don't know how that happened, or understand how that relates to the problem or the error message. I have never used that property, but it was there and I must have inadvertently set it.

    Thanks again and thanks for pointing me at that article on debugging. Unlike many such writeups, very clear.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-14-2012, 04:47 PM
  2. Replies: 3
    Last Post: 08-12-2012, 11:53 PM
  3. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  4. Replies: 1
    Last Post: 08-17-2011, 01:43 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