Results 1 to 10 of 10
  1. #1
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33

    Inventory Management System

    Hi, in my inventory I have the following field



    ProdName.
    UnitCost.
    QtySold.
    TotalCost
    Remaining Quantity

    As you are selling product the Remaining Quantity is reducing. But when the product is finished it turn to Zero. The problem am having now is that if I enter a value e.g 20 in the field of a 'QtySold' the 'Remaining Quantity' changes to -20.

    This is the code for the "Remaining Quantity"

    =IIf(IsNull([Product_Id]),0,DLookUp("[Product_Quantity]","qryProduct_Quantities","[Product_Id] = " & [Product_Id]))

    What I want now is that if my Remaining Quantity is 0, TotalCost=0 when QtySold*UnitCost are multiplied or a message should pop-up and say Product Finshed. I really needs help. Thanks for your usual assistance

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I recommend that you review AppInventory from Allen Browne for ideas and examples with rationale.

    Always good to show your tables and relationships.

  3. #3
    Abdulaym is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    33
    Am new here am finding it difficult to upload my relationship n table

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Abdulaym View Post
    Am new here am finding it difficult to upload my relationship n table
    Reply, Go Advanced and use the Attachments button.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Or follow the instructions by clicking on the "how to attach files" button at the top of the forum page.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Abdulaym View Post
    Hi, in my inventory I have the following field

    ProdName.
    UnitCost.
    QtySold.
    TotalCost
    Remaining Quantity

    As you are selling product the Remaining Quantity is reducing. But when the product is finished it turn to Zero. The problem am having now is that if I enter a value e.g 20 in the field of a 'QtySold' the 'Remaining Quantity' changes to -20.

    This is the code for the "Remaining Quantity"

    =IIf(IsNull([Product_Id]),0,DLookUp("[Product_Quantity]","qryProduct_Quantities","[Product_Id] = " & [Product_Id]))

    What I want now is that if my Remaining Quantity is 0, TotalCost=0 when QtySold*UnitCost are multiplied or a message should pop-up and say Product Finshed. I really needs help. Thanks for your usual assistance
    Essentially you should be checking there is enough before attempting to subtract anything.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Not sure I agree totally, but inventory management is not my area of expertise. I might deal with the results of a negative value in the way of prompts, but as far as the calculation goes, a negative number tells you how many short you are for an order. If there is a low stock point field for inventory items, you could also know the total required for the order plus what's required to bring you back to the low stock point.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Nor mine, but I hold the view, one cannot sell more than is in stock unless the rest is back ordered and delivered later.
    Then we are entering another dimension of setting up purchase orders etc?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    All I'm saying is that the negative value is not necessarily a bad thing to have/see, notwithstanding the ramifications of it.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You have to be very familiar with what your rules for inventory are.
    Also, you should review:
    ReOrder point
    ReOrder quantity

    Further, it you review the Northwind2.0 videos, Kim Young describes rules for Inventory in that application. I suggest you watch

    https://support.microsoft.com/en-us/...9-a2f9b941015f and
    https://support.microsoft.com/en-us/...5-0714ca8dc1e2

    and listen/review her comments on the rules for Inventory for these new demo databases.

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

Similar Threads

  1. Document Management System
    By napster75 in forum Programming
    Replies: 4
    Last Post: 04-04-2018, 10:19 AM
  2. Replies: 4
    Last Post: 10-01-2016, 04:15 PM
  3. File management system
    By renovator in forum Programming
    Replies: 3
    Last Post: 05-20-2016, 03:55 PM
  4. Student Management System ERD.
    By Altaful Haq in forum Database Design
    Replies: 1
    Last Post: 04-17-2014, 02:18 PM
  5. ATM Cash Management System
    By NexusMike in forum Access
    Replies: 1
    Last Post: 08-09-2010, 12: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