Results 1 to 5 of 5
  1. #1
    Malikei29 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2017
    Posts
    10

    Adding a new Record using a Form

    I have designed my table, Query, and Form. Everything works well. I can see my records in my form and all the data is correct.



    My problem is now that I want to add a new record using a form.

    However, I can only view records that I have entered in my table/query.

    I want to create a Main menu (which I know how to do) and then add a "ADD NEW RECORD" button.

    I have created the button but when I click on it nothing happens.

    Please Help I'm lost.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    However, I can only view records that I have entered in my table/query.
    It sounds like either:
    - You are basing the Form on an Unupdateable Query, so you cannot add or edit records through it. If this is the case, create a new Form based either directly on the Table or on an Updateable Query.
    - You have the "Allow Additions" property on your Form set to "No". If this is the case, then just change property.

    Note, if you want a form for new data entry only, change the a "Data Entry" property to "True".

  3. #3
    Malikei29 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2017
    Posts
    10
    Thanks, JoeM. I have changed all the properties as mentioned, and I have recreated my form directly from the query. However once I have added my "ADD NEW RECORD" button and click on it it still does nothing. I have been told I need to use V.B.A. But I don't know how. Can anyone please assist.

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    How exactly did you add the "ADD NEW RECORD" button?
    If you go to the Properties on that button and go to the Event tab of the Properties, are any of the Event fields populated?
    If so, which ones, and what are they populated with (if VBA code, please provide the code)?

  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
    Quote Originally Posted by Malikei29 View Post

    ...I have recreated my form directly from the query. However once I have added my "ADD NEW RECORD" button and click on it it still does nothing...
    As JoeM said, it sounds as if your Query is Read-Only, as most multi-table Queries are. Can you open the Query directly and add a Record?

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 6
    Last Post: 05-09-2017, 09:13 AM
  2. Adding new record to a table from a different form.
    By IncidentalProgrammer in forum Programming
    Replies: 5
    Last Post: 04-03-2015, 12:04 PM
  3. Is clearing a form the same as adding a new record?
    By Access_Novice in forum Forms
    Replies: 2
    Last Post: 12-04-2013, 08:15 PM
  4. Replies: 4
    Last Post: 08-14-2012, 07:14 AM
  5. adding record by using separate form
    By jacek.w.bak in forum Forms
    Replies: 1
    Last Post: 09-11-2011, 06:15 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