Results 1 to 6 of 6
  1. #1
    Niyrho is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    5

    Form button to add value in table

    I have a table with a list of things in it, including a field for quantity.



    I have a form to add new objects to the table.

    In the same form I can select an object already listed in the table.

    I need to add a textbox I can enter a number into and a button that, when pressed, will add the number in the textbox to the quantity for the selected object in the table.

    Can Access even do this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,914
    Sounds like you are trying to maintain a 'quantity on hand' value. It can certainly be done but should you? Review http://allenbrowne.com/AppInventory.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Can’t you just type in the value? Why a button?

  4. #4
    Niyrho is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    5
    Quote Originally Posted by ranman256 View Post
    Can’t you just type in the value? Why a button?
    I have to track quantities that range from ounces to hundredths of grams.

  5. #5
    Niyrho is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    5
    Quote Originally Posted by June7 View Post
    Sounds like you are trying to maintain a 'quantity on hand' value. It can certainly be done but should you? Review http://allenbrowne.com/AppInventory.html
    Yes, I should because it's what I need it to do and part of the purpose of a database.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,914
    Yes, purpose of database is to store and manage data. However, it is usually bad design to save aggregate data, especially if there are no records to substantiate the saved value. What if person accidentally hits the "Add" button more than once for the same input? How would that error be discovered? Better practice is to calculate summary data from transaction records.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 9
    Last Post: 05-24-2021, 06:29 AM
  2. Replies: 6
    Last Post: 12-13-2014, 09:20 PM
  3. Replies: 12
    Last Post: 11-11-2014, 02:10 PM
  4. Replies: 1
    Last Post: 07-01-2014, 01:41 PM
  5. Replies: 9
    Last Post: 02-15-2011, 03:05 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