Results 1 to 7 of 7
  1. #1
    Jose is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    3

    Post Can I limit the number of records in a table to one and keep changing this record thru Form

    I am new to access and so you may find my question silly. I would like to get input into a table through a form, which is used in a query to pull data from another table. Can someone help 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,521
    Set the form's Allow Additions property to No and it won't be able to add a record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Dehn0045 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    11
    In addition, you could use unbound controls on a form and set Form Property --> Navigation Buttons to OFF. Here is a short tutorial that I found instructive: https://www.youtube.com/watch?v=mnWidUABYdQ

  4. #4
    Jose is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    3
    I need to take input into this table through a form. Then to run some queries using this information and finish the process. Next time again I need to get information through the same form and update this record in the table and do some reports based on this new input. So every time I need the form to update the record in the table, but I don't need more than one record in this table. Can I achieve this?

  5. #5
    Dehn0045 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    11
    If you do what pbaldy said in his response, that should be sufficient. There is nothing fundamentally wrong with having a table that has only one record. If the input is changing only slightly, then it might be useful to use a table rather than unbound controls (unbound controls are not linked to table fields).

  6. #6
    Dehn0045 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    11
    If you want the input to be entirely new each time, then I would go with unbound, otherwise you will need to make all of the fields NULL using code in the Form's On Load event.

  7. #7
    Jose is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    3
    Thank you very much Dehn, The youtube video you recommended gives me what I wanted to accomplish. Thanks a lot.

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

Similar Threads

  1. Limit record entries based on number in field
    By lamore48 in forum Access
    Replies: 5
    Last Post: 02-12-2018, 02:05 PM
  2. Replies: 6
    Last Post: 11-27-2014, 03:21 AM
  3. limit number of records in a subform
    By PJT in forum Forms
    Replies: 4
    Last Post: 04-13-2014, 11:29 AM
  4. Limit number of records in report
    By aksnell in forum Reports
    Replies: 3
    Last Post: 12-05-2011, 02:31 PM
  5. Limit number of records in report by group
    By Dr Ennui in forum Reports
    Replies: 0
    Last Post: 06-22-2010, 12:36 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