Results 1 to 6 of 6
  1. #1
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216

    Form won't allow edits


    I have a proposal form which contains the main form and 3 subForms. It has a lot of stuff on it and works great. However, sometimes (for some unknown reason), it puts 'no' on the property sheet's 'allow edits'. I can change that back to 'yes' and it allow edits again (once, I had to change all subForms to allow edits). I put a button on the form with the code:

    Me.AllowAdditions = True

    That allows edits on the main form, but not on the subForms. That code does NOT change the main form's allowEdits to 'yes', but it is editable. The sub form's allowEdits are 'yes', even though it they don't allow edits. Any help is appreaciated.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Hard to tell from your description. First off,

    Me.AllowAdditions = True

    shouldn't effect the ability to make edits.

    How are you opening the Form, i.e. are you starting it from the Objects Pane or opening it from another Form? I ask because the DoCmd.OpenForm code, depending on the parameters you use, can override the way that AllowEdits/AllowAdditions is set on the Form.

    If it is as truly bizarre, without rhyme or reason, as your post suggests, the Form may very well be corrupted.

    BTW, if AllowEdits on the Main Form is set to No, you won't be able to edit anything on the Subforms, regardless of their AllowEdits settings. The Access gnomes consider editing a Subform to be editing the Main Form, where the Subform Controls reside.

    Linq ;0)>

  3. #3
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216
    The form is opened by a button on another form. DoCmd.OpenForm "frmProposals2" is the total code on that buttom.

    It appears bizarre in that I may work all day without it happening, an then 'wham'. If this is the case, is there a fix?

    I have the 'allow edits' property set to yes on the property sheet. Access sets it to 'no' when it happens.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you want to provide db for analysis, follow instructions at bottom of my post.

    There is a reason, even if that reason is corruption. Corruption is a cause that can only be fixed by rebuilding something. Maybe just a control but can be as bad as the entire db.
    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
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216
    If you are talking about providing the entire dababase, it is 149 mb. I don't think I could ever get it down to 2 mb.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If making a copy and removing data or extracting only the relevant objects and code and running Compact & Repair still doesn't get it small enough, alternative is upload to a fileshare site such as Box.com and post link to the file.

    Is this a split design?
    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.

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

Similar Threads

  1. Allow Edits on Subform
    By scoughlan in forum Programming
    Replies: 5
    Last Post: 01-16-2012, 02:12 PM
  2. command button for allow edits
    By phineas629 in forum Forms
    Replies: 1
    Last Post: 10-18-2011, 07:09 PM
  3. Deletions vs. Edits
    By jparker1954 in forum Forms
    Replies: 7
    Last Post: 09-20-2011, 08:02 AM
  4. Forms! Allow Deletions/Edits - No
    By cap.zadi in forum Forms
    Replies: 9
    Last Post: 09-16-2011, 01:37 PM
  5. Create a form that edits a specific record
    By winteram in forum Forms
    Replies: 10
    Last Post: 07-28-2011, 11:46 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