Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2011
    Posts
    20

    Post How to Create New record programmatically

    Hi all !!!!!!!! I need to create a new record using VBA. I have tried using the following code. But it didnt work.


    Code:
    Private Sub btnNew_Click()   
    DoCmd.GoToRecord , , acNewRec  
    End Sub
    Plz suggest me

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What does "didn't work" mean? Error, not the correct result, etc. That should bring a bound form to a new record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Programmatically create a ACCDE
    By srbond@hotmail.com in forum Programming
    Replies: 2
    Last Post: 11-18-2010, 08:00 AM
  2. Create new record in subform
    By david.paige in forum Forms
    Replies: 3
    Last Post: 08-16-2010, 02:00 PM
  3. Replies: 6
    Last Post: 07-16-2010, 10:25 AM
  4. Create PDF for each record in table/form
    By ChrisCMU in forum Forms
    Replies: 15
    Last Post: 07-28-2009, 01:52 PM
  5. create word documet for each record
    By datto in forum Programming
    Replies: 0
    Last Post: 02-11-2007, 06:57 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