Results 1 to 3 of 3
  1. #1
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27

    inventory system transaction form fields


    hello again,i am stuck again.Okay so i hve three tables and forms for each of those tbl
    INVENTORYtble-Fields(ID,Name,quantity,price,Reorder level,Amount left)
    TRANSACTIONtble-Fields(ID,TID,Quantity,Stockleft,SPrice)
    ORDERtbl-Fields(ID,OID,quantity)

    I added the fields"Reorder' and "Quantity" from the inventory to the transaction form.for the afterupdate event for the transaction form"Quantity"field,i created a macro to set the value of the "amount left "field by subtracting the quantity from the Inventory form with the quantity value being entered into this field.The same i have done to set the value for the "Stockleft"field.

    the problem now is when i enter the ID of the item to sell, it calculates how much is left and inputs it inboth the inventory and transaction tables but when i sell the same item again it doesnt recalculate the stockleft from the amounleft but instead from the original quantity.
    What do i do so when i eneter the same item it doesnt deduct it from the original quantity?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by xtrareal22 View Post
    What do i do so when i eneter the same item it doesnt deduct it from the original quantity?
    Have you considered not storing calculated values in your tables? You can simply "display" the calculated value at the time it matters, such as a report or in a form's unbound control.

  3. #3
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27
    Okay,i will do that,

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

Similar Threads

  1. Need Help:Basic Inventory System
    By shazi9b in forum Access
    Replies: 5
    Last Post: 09-26-2013, 12:48 AM
  2. Replies: 1
    Last Post: 02-21-2013, 12:18 AM
  3. An inventory system
    By stew8908 in forum Access
    Replies: 3
    Last Post: 05-08-2012, 05:50 PM
  4. Inventory System
    By Rawb in forum Database Design
    Replies: 8
    Last Post: 01-05-2011, 07:26 AM
  5. Replies: 6
    Last Post: 12-10-2009, 08:12 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