Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Add Records Button (2002)

    I have a form that I have setup to view and edit existing records. Adding records is not permitted. Allow Additons property is set at no.

    Now I want to add a button that will allow adding records. The wizard adds a button with the code:
    DoCmd.GoToRecord , , acNewRec

    I think I need another line of code to reset the add additions property from no to yes.

    Can any one help?

    Thanks.

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Add Records Button (2002)

    You could insert

    Me.AllowAdditions = True

    above the line that moves to a new record.

  3. #3
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add Records Button (2002)

    Thanks Hans.

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •