Results 1 to 7 of 7
  1. #1
    anidiot is offline Novice
    Windows 10 Access 2007
    Join Date
    May 2021
    Posts
    2

    Chemical item stock management

    Hello,



    I need some help figuring out how to create a simple inventory management please. What I will be doing is create a table with all chemicals in stock. I also need to create another table with formulations (lets say each formulation contains 3 ingredients). So I would need to enter each formula with their respective ingredients and quantities.

    For example, let's say Formula XB12 contains 5kg of A, 4kg of B, and 1kg of C chemicals.

    When I make a 20kg mix XB12, it should reduce the stock of all 3 ingredients (10kg of A/ 8kg of B/ 2kg of C) from the current stock.

    What would be best way to achieve this? Are there any examples that anybody knows that I can play with?

    Many thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    "Simple" is relative.

    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
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    I would add a variation to Allen’s example which can be applied in many situations.

    The principle Allen uses is correct but rather than having three tables to record transactions (in/out/stocktake), use one with perhaps an additional field to provide more information such as transaction type which might include all the other things that can happen - recorded wastage/spoil for example.

    Quantity can then either be plus or minus depending on whether received or used (simpler calculations but a bit more work to convert a plus to a minus when the record is saved) or all positive and a bit more work to do the conversion at calculation time, but easier for handling record saving - users won’t want to have to remember to include a minus sign. In terms of user interaction this is closer to Allen’s solution

  4. #4
    anidiot is offline Novice
    Windows 10 Access 2007
    Join Date
    May 2021
    Posts
    2
    Thanks for the comments.

    I get the logic, but in my case, it really is simple. I really would appreciate it if you could give me some direction - I've designed a fairly basic table and equally simple form where the stock can be entered/updated (weekly). What I want to is, most importantly, reduce the stock based on formulation. I've given a basic example on my original question.

    If you can give me some direction that would be great.

    Thanks

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    We’ve provided direction as to how to do it properly. For myself really not interested in spending a lot of time trying to do it the wrong way. Just too many problems

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Write code that updates table. This could be as simple as code behind form while focus is on record to edit Me!fieldname = Me.textboxname or Me!fieldname = some expression or function to calculate new value. The real trick is figuring out what event to put code into.

    I wouldn't go this route either.
    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.

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

Similar Threads

  1. Bag Stock Management System - DB Design?
    By lewis1682 in forum Database Design
    Replies: 2
    Last Post: 05-12-2019, 09:20 AM
  2. Replies: 5
    Last Post: 03-14-2019, 03:01 AM
  3. Replies: 4
    Last Post: 10-01-2016, 04:15 PM
  4. Creating a form for stock management
    By StevenStip in forum Access
    Replies: 3
    Last Post: 05-06-2013, 01:00 PM
  5. Product / Stock Management
    By dale.90 in forum Access
    Replies: 1
    Last Post: 09-30-2010, 11:08 AM

Tags for this Thread

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