Results 1 to 3 of 3
  1. #1
    1943 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    7

    Calculation in a form Access 2003

    Hi,
    Can anyone make the attached db work? I need it to clear the Units Received and UnitsSold after each transaction ready for new entry while
    retaining Units On Hand for each record.


    I would appreciate any HELP.

    DWH

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

  3. #3
    jzwp11 is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Actually since a product can be assoicated with many transactions, that describes a one to many relationship which would be handled with a separate table.


    tblProducts
    -pkProductID primary key, autonumber
    -txtProductNo
    -txtProductName

    tblTransactionDetails
    -pkTransDetailID primary key autonumber
    -fkTransID foreign key to tblTransaction (the "header" info to the transaction)
    -TransType (Sold or Received)
    -fkProductID
    -QTY

    tblTransaction
    -pkTransID primary key, autonumber
    -fkCompanyID foreign key to the company table; company associated with the transaction
    -dteTransaction (date of the transaction)


    To find your current quantity, you would use a query to sum up all of the transactions for each product that are of the Received type and a similar query for the Sold type. You would then bring those together in a third query to find the quantity on hand.

    There are some more intricate ways of handling inventory control. Allen Browne has another table structure and a function on his site that you may want to look at.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-28-2011, 11:42 AM
  2. Replies: 13
    Last Post: 11-20-2010, 06:45 AM
  3. Calculation in access forms
    By miziri in forum Programming
    Replies: 13
    Last Post: 11-23-2009, 05:55 AM
  4. Access 2003, sort order property of a form
    By Rick West in forum Forms
    Replies: 11
    Last Post: 09-17-2009, 08:28 PM
  5. Replies: 1
    Last Post: 09-06-2006, 11:48 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