Page 1 of 4 1234 LastLast
Results 1 to 15 of 52
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    Stock\inventory Control

    Hi
    i have a database that hold sales details, i would like to add stock\inventory control to it.

    I have tables set up that hold the products (this has a quantity field)
    and a form that allows the user to add the amount sold or purchased.
    what is the best way to up the product table after the user enters amount sold or purchased

    what is the best way around it, or what is the theory, i have had a look online and tried to look at other database, but didnt get anywhere

    I have attached images of the table, form and how the tables are links, if needs be i can upload the database too

    Thanks in advance

    Click image for larger version. 

Name:	1.png 
Views:	52 
Size:	35.2 KB 
ID:	10894
    Click image for larger version. 

Name:	2.png 
Views:	43 
Size:	27.1 KB 
ID:	10895
    Click image for larger version. 

Name:	3.png 
Views:	36 
Size:	6.6 KB 
ID:	10893

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    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
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    i tried to look at that thanks, but cant understand that, the database iv designed is for a project, can you walk me through the theory please

    thanks

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    What do you mean 'designed for a project'? I am using Access 2010 and can't download that database now.

    In theory, with a relational database, transactions of incoming and outgoing product are summarized and subtracted to determine net balance.
    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.

  5. #5
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    sorry i meant the dabase iam working on is a project that needs to go live in 3 months! iam using access 2007. sorry

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Inventory type database is common topic in forum. Search forum or google.

    What don't you understand about the template database from link?

    Basically, do a query that calculates sum of product purchased, another query that calculates sum of product sold. Build a query that joins those two and subtract the sum of sold from sum of purchased.
    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.

  7. #7
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    I agree with june7

    One thing that you can think about is to create a history of product sales table. At some point your sales table and purchase tables will get huge and calculations will slower and slower. You can have a process that summarizes product sales and purchases on daily or monthly table. There are issues with reconciliation. But it is never to early to start thinking in those terms.

  8. #8
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    i didnt understand the database as i couldnt see any queries in place or coding to add or minus stock etc, from the above post ill try to do what you mentioned

    thanks

  9. #9
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    june7 has given you the answer in an earlier post.

    Basically, do a query that calculates sum of product purchased, another query that calculates sum of product sold. Build a query that joins those two and subtract the sum of sold from sum of purchased.

    do you understand how to build these queries?

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    I explored that Inventory database a little. The objects are organized by 'Inventory Navigation' and the tables and queries are under 'Supporting Objects'. You can change this display by selecting alternative from the Navigation Pane dropdown list.

    Look at the query Inventory Transactions Extended, the field Actual Quantity is an expression that sets a transaction value as positive or negative. Then the aggregate query Inventory Stock Levels sums that field. This shows one way to calculate net balance when all transactions are in a single table. In your case, transactions are in separate tables - SalesDetails and PurchaseDetails. Build an aggregate query on each table, join those queries on ProductID, subtract product sold from product purchased.
    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.

  11. #11
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    when does the quries run? and whats it based on? will it run once i enter all the sales in the form? (On form exit??)

    Thanks

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Are you talking about the sample database queries? Open query in design view to examine structure and see what it's based on. I expect it is used as the RecordSource for a report. Open report and query 'runs'.

    Or are you talking about your queries yet to be built? The summation query would be RecordSource for report. Open report and query 'runs'.
    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.

  13. #13
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    hm, just so we on the same page, i should look at the sample database (posted on 27.1.13 @8:30pm) and see how the query is set up, then apply that to mine?

    my database has a report (1 for sales and other for purchase orders) that display the total amount sold\purchased after selecting a date. so i need one like that, so it can add all items sold (in my example sweets) once the query gets that information, do i use a update query (or some thing) to update the stock?

    thanks in advance

  14. #14
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    The query in the sample db won't be exactly what you need to do because your transactions are in two tables. As already stated, you need to do a summation query for purchases and a summation query for sales. Join the two queries and calculate difference of purchases and sales. With this approach, there is no 'update of stock'. The stock on hand is the calculated difference. This is unrelated to reporting the purchases and sales occurring after a specified date.
    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.

  15. #15
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    i looked into this more and i cant use the report query as that displays a break down of what each shop has purchased or what purchases were made from each supplier
    so i have made a new query with (see attachment please)

    Click image for larger version. 

Name:	1.png 
Views:	34 
Size:	22.3 KB 
ID:	10979
    when i ran that it displayed
    Click image for larger version. 

Name:	2.png 
Views:	33 
Size:	14.8 KB 
ID:	10980

    how do i count the total of all the tubs so the query shows 14 tubs???

    there this is the next step to update these number and subtract the Quantity from the product table?

    thanks

Page 1 of 4 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Stock Inventory Design
    By plowe in forum Database Design
    Replies: 3
    Last Post: 09-06-2012, 05:47 PM
  2. Inventory stock levels
    By Sagrado in forum Access
    Replies: 1
    Last Post: 03-15-2012, 10:20 PM
  3. Calculating Current Stock in Inventory/Warehouse
    By yohansetiawan in forum Access
    Replies: 5
    Last Post: 03-14-2012, 09:05 PM
  4. Invoicing with Stock Control Design ....
    By mond007 in forum Access
    Replies: 5
    Last Post: 05-23-2010, 07:21 AM
  5. creating a stock control database!!! HELP!!!!
    By Legend9 in forum Database Design
    Replies: 1
    Last Post: 09-10-2009, 02:24 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