Results 1 to 3 of 3
  1. #1
    sgtclark is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2020
    Posts
    22

    Set Record Lock to 0 for subForm

    I am trying to set the property of a subForm so that it isn't locked.



    I have used this code in vba before for a form....FORMS("CS New ATR").RecordLocks =0

    I need to write it to reference the subForm of that form so that an update query can run before the form closes.

    Does anyone know the right naming for the code? I feel like I've tried every way I know.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,283
    Is this what you're looking for?

    http://www.theaccessweb.com/forms/frm0031.htm

    I've never set that particular property, I set AllowEdits.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    2,949
    Why is the Subform locked in the first place?

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Lock only the first record.
    By Perfac in forum Forms
    Replies: 2
    Last Post: 02-19-2018, 04:57 PM
  2. Fields lock randomly on subform
    By zosta in forum Forms
    Replies: 7
    Last Post: 02-10-2015, 09:24 AM
  3. Replies: 1
    Last Post: 12-28-2012, 01:56 PM
  4. Replies: 9
    Last Post: 05-12-2012, 12:16 PM
  5. lock a record
    By Nokia N93 in forum Programming
    Replies: 3
    Last Post: 02-21-2011, 02:51 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 - Senior Forums