Results 1 to 5 of 5
  1. #1
    NISMOJim is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2010
    Posts
    273

    Continuous form showing new record

    Hello,

    I'm using a continuous form as a list of potential visitors to a work site. I'm using a form instead of a report, because there is a checkbox on each record for the boss to approve each visitor. Everything is working fine, except one small annoyance...after the last record is a blank new record. The form is opened with a command button that opens the form in edit mode, and the "Allow Additions" property is set to "No". If I open the form, then change to design view, change the "Allow Additions" to "Yes", and back to "No", the new record goes away when I go back to form view. When I close the form then open it again, the new blank record is back at the bottom again. Isn't the Allow Additions property supposed to keep this from happening, or is there something else I can do to keep a new record from showing at the end of the form?



    Thanks for the help.

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    If you don't want the new record then Allow additions should be No.

    Having set this value, you do need to save the form.

    It may be you are changing this setting with your openform command - it should be set to acFormEdit or acFormPropertySettings or left blank

  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
    3,018
    Quote Originally Posted by Ajax View Post

    ...It may be you are changing this setting with your openform command...
    That's exactly the problem! Using

    Code:
    DoCmd.OpenForm "SecondaryFormName", , , , acFormEdit
    allows Records on the secondary Form to be Edited and to have New Records added...overwriting the AllowAdditions setting, done in the Property Pane. To get around this you need to set the property when the secondary Form opens:
    Code:
    Private Sub Form_Load()
     Me.AllowAdditions = False
    End Sub


    linq ;0)>

  4. #4
    NISMOJim is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2010
    Posts
    273
    Thanks Linq, that did the trick!

  5. #5
    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
    Glad we could help!

    Linq ;0)>

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

Similar Threads

  1. Continuous Form blank record
    By QuantifyRisk in forum Forms
    Replies: 3
    Last Post: 12-01-2014, 09:07 AM
  2. More than One Record on filtered Continuous Form
    By Williams485 in forum Forms
    Replies: 3
    Last Post: 03-13-2013, 04:56 AM
  3. Replies: 3
    Last Post: 10-12-2012, 01:38 PM
  4. Delete continuous form record
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 03-09-2012, 03:00 PM
  5. Hiding a new record in a continuous form
    By system243trd in forum Forms
    Replies: 3
    Last Post: 12-03-2011, 01:04 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