Results 1 to 3 of 3
  1. #1
    gft is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2018
    Posts
    1

    up dating data

    hello,
    I need to create a simple db to enter and update data. One table with two fields one will have the unique codes that i will have pre entered and one with quantities.


    In a form I will type the unique code and then the quantinty, every time I enter a quantity the field will be updated. For example I type code 701 quantity 1 click on a button and it should update the quantity of code 701 to 1. The next time I type code 701 and quantinty 3 it should update the quantity to 4. I hope I make sense and thank you in advance. Regards George

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    make a form, put 2 text boxes on it; txtCode, and txtQty
    (better would be combo box for Code and just pick from it)

    create an update query,quAddNewQty
    it will add the items on the form..
    quAddNewQty: update table set [qty] = [qty]+forms!myform!txtQty where [code]=forms!myForm!txtCode

    the updatebutton will run the query:
    docmd.openquery "quAddNewQty"

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Welcome to the forum, George.

    It sounds like you are very new to Access. I think it would help you by doing these tutorials. Not just look at them, actually do them.
    http://www.rogersaccesslibrary.com/forum/forum46.html

    Good luck with your project....

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

Similar Threads

  1. Dating add back end
    By OrganicMC in forum Programming
    Replies: 4
    Last Post: 12-13-2017, 08:59 AM
  2. Union Not up dating Correctly
    By keiath in forum Forms
    Replies: 5
    Last Post: 04-23-2014, 04:53 PM
  3. Replies: 1
    Last Post: 12-21-2011, 02:11 PM
  4. dating it now, not later
    By ldodge in forum Database Design
    Replies: 15
    Last Post: 05-18-2011, 01:13 PM
  5. Issues with dating when importing excel file
    By Lainie in forum Import/Export Data
    Replies: 0
    Last Post: 01-22-2009, 10:50 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