Results 1 to 6 of 6
  1. #1
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13

    Allow Edits on Subform

    Just a quick question I hope. I am using this simple VB code (see attached) on a button to allow edits to a form. Problem is, clicking the button only allows edits to the form not the subform. How do I modify the code to allow edits to both please?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13
    I have seen that table. Unfortunately, I am a beginner and have no idea what any of that means! Can you be more specific please? Thanks.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Me.SubFormControlName.FORM.AllowEdits = True
    ...using *your* SubFormControlName of course.

  5. #5
    scoughlan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    London
    Posts
    13
    Thanks for the help Rural Guy. Worked a treat!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Thanks for posting back with your success.

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

Similar Threads

  1. command button for allow edits
    By phineas629 in forum Forms
    Replies: 1
    Last Post: 10-18-2011, 07:09 PM
  2. Deletions vs. Edits
    By jparker1954 in forum Forms
    Replies: 7
    Last Post: 09-20-2011, 08:02 AM
  3. Forms! Allow Deletions/Edits - No
    By cap.zadi in forum Forms
    Replies: 9
    Last Post: 09-16-2011, 01:37 PM
  4. Replies: 2
    Last Post: 03-29-2011, 05:53 AM
  5. protecting records from unwanted edits
    By Hunt2871 in forum Security
    Replies: 2
    Last Post: 08-01-2010, 10:49 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