Results 1 to 3 of 3
  1. #1
    Electricks21 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Location
    Philippines
    Posts
    2

    Subtract ListBox items in field of a table

    Hello guys.



    I have a form with a textbox, listbox and a button.
    my textbox is based on one of my tables, and when I enter a value (which is saved in my table) in my textbox and press enter, certain values in my table goes to my listbox, and my listbox will just additem whenever I do same thing in my textbox all overagain.
    Now here's the question,
    how can I subtract listbox.column(1) items in my table field "Item_Quantity" where my Listbox.column(0) is equal to my table field "Item_Description".


    My Listbox column count property = 4
    Row source type = value list


    Thank you in advance guys .

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Sounds like you are storing calculated aggregate data. This is usually a bad idea. Aggregate data should normally be calculated when needed, not stored. 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
    Electricks21 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Location
    Philippines
    Posts
    2
    Oh no. tsk. think gotta change my process. anyway thanks for the info june7. (;

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

Similar Threads

  1. how to de-select items in a listbox
    By CharbelKahi in forum Programming
    Replies: 1
    Last Post: 06-23-2014, 07:05 AM
  2. Replies: 12
    Last Post: 03-17-2012, 04:46 AM
  3. Replies: 8
    Last Post: 05-24-2011, 03:41 PM
  4. Replies: 9
    Last Post: 01-20-2011, 02:22 PM
  5. Selected items in listbox
    By tomodachi in forum Access
    Replies: 1
    Last Post: 09-09-2010, 01:14 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