Stock DB

Vugar

Registered User.
Local time
Today, 21:43
Joined
Sep 15, 2015
Messages
55
Hi All,

I'm trying to create sample Stock DB for small business.

Now the problem is , I can't connect Incoming with Outgoing.

Because when I create Query it doesn't work.

Could you please give your idea, thanks in advanced.
 
Sorry,
I'm new in Access, and this Link difficult for me.

thank you for helping
 
Please explain the problem you are experiencing in more detail
 
Please find attache my Stock DB that I try to create.

I can't connect TotalIncome with TotalOut to get TotalInStock.

Could you please help with it.

thank you
 

Attachments

I use Tapatalk to answer the forum questions from my mobile phone. So I can't look at the db. In any event it's much better if you take the time and trouble to explain what you are doing, as often this process will help you solve the problem yourself.
 
I'm trying to build a DB for our warehouse. We have a rod, bits and etc. when we have projects, we send the goods from the stock and when the project finished we return items to stock, but with a different status condition (used, lost). I built the table
1.ItemCatalog
2.Status
3.Shelf
4.Incoming
5.Outgoing

and Queries
1. "IncomingQuery" where bind Incoming-Item Catalog-Status-Shelf-Project
2. "OutgoingQuery" where bind Outgoing-Item Catalog-Status-Shelf-Project
and I can not bind "OutgoingQuery" with "IncomingQuery" to calculate Stock avilability.
 
Please explain item 4 and item 5 in more detail.
 
4. Incoming - when we purchase from suppliers and return from Projects (Outgoing)

5. Outgoing - when we send to project
 
You should look at the link provided.
You should use a single qty field and then have negatives for outbound and positives for inbound, not two separate columns.

Your stock balance is then simply the sum of the qty field. Includes a usage type field for reporting purposes.
 
And what is "Incoming"? A date, boolean, integer?
 
personally, I would have a single set of information for incoming and outgoing.

incoming are plus, outgoing are minus.

I think it is far easier to do it that way.
 
you advise to do out and incom in the same table?
 
Thanks,

But I don't know SQL, so I can't understand how this link help me.
 
To make a stock application, even a simple one, you will need to at least understand some basic SQL / VBA as simple queries and forms alone may not be enough to give you what you need.

It is worth learning the basics to give you a chance of completing your project.
 
Hello Everybody!
As I have posted here before I am currently designing stock database for our company to accomplish the following:
1) To maintain full control over the current location, condition (new/used, etc), quantity of every goods/materials/consumables that our company uses.
2) To generate various statistical reports (including Excel charts) for analysis by the senior management
3) To have a single point data collection database by means of Access Forms

I prefer to use out-of-box solutions and avoid any major programming or scripting work, except copy/paste type ready-to-go codes that require minimum editing.

Currently I am facing problems and cannot solve certain tasks with Access. I cannot distinguish if these problems are due to Access own limitations or lack of my knowledge. So I very much need your help.

I have started a new Database with “Incoming” Table to record all goods/materials/consumables received by the stock:
The fields and sample content in the Incoming Table is as below:

attachment.php


Now let’s assume that the following items were issued from the stock and recorded in the “Outgoing” Table. The table content will be something like this:
attachment.php


In order to avoid issuing items that are not physically available at the stock I want to link the “Outgoing” table to the “Incoming” table so the “Outgoing” Table can only be filled-in with items actually available in the stock.

I understand that some kind of "Subtraction Query" must be designed to group, summarize and deduct “Outgoing” items with the same Part No., Status, Shelf Number and Serial Number (if any) from items in the “Incoming” table.

I need help creating such Subtraction Query that would link the “Incoming” and “Outgoing” tables in itself.

Let’s see the sample above to better understand what I am trying to achieve.

For instance, "Kettle 100ml" has a unique Part Number – "K100". Once selected from the dropdown list in the Item field of the “Outgoing” table the Status field in the “Outgoing” table logically should only have one option: “New” in its dropdown list.
Ideally I would like to have a multi-column dropdown list in the “Status” field of the “Outgoing” table with the following entry:

attachment.php


The “Status” field of the “Outgoing” table for the Part Number "T150" with no Serial Number should group the items based on Status, Shelf Number and Quantity and list as below:
attachment.php


How can this be achieved?

Thank you in advance!
 

Attachments

  • Incoming.jpg
    Incoming.jpg
    77.2 KB · Views: 533
  • Outgoing.jpg
    Outgoing.jpg
    29.8 KB · Views: 432
  • dropdown1.jpg
    dropdown1.jpg
    9.8 KB · Views: 335
  • dropdown2.jpg
    dropdown2.jpg
    6 KB · Views: 332
Did you look and review the info at any of the links you have been given? I have suggested RogersAccessLibrary for design tutorials.

Here is a generic step by step process from Barry Williams site.

These are the Steps in a Top-Down Approach :-

1 Define the Scope as the Area of Interest,(e.g. the HR Department in an organization).
2 Define the "Things of Interest",(e.g. Employees), in the Area of Interest.
3 Analyze the Things of Interest and identify the corresponding Tables.
4 Consider cases of 'Inheritance', where there are general Entities and Specific Entities.
For example, a Customer is a General Entity, and Commercial Customer and Personal Customer would be Specific Entities. If you are just starting out, I suggest that you postpone this level of analysis.
5 At this point, you can produce a List of Things of Interest.
6 Establish the relationships between the Tables.
For example, "A Customer can place many Orders", and "A Product can be purchased many times and appear in many Orders."
7 Determine the characteristics of each Table,(e.g. an Employee has a Date-of-Birth).
8 Identify the Static and Reference Data, such as Country Codes or Customer Types.
9 Obtain a small set of Sample Data,
e.g. "John Doe is a Maintenance Engineer and was born on 1st. August, 1965 and lives at 22 Woodland Street, New Haven.
"He is currently assigned to maintenance of the Air-Conditioning and becomes available in 4 weeks time"
10 Review Code or Type Data which is (more or less) constant, which can be classified as Reference Data.
For example, Currency or Country Codes. Where possible, use standard values, such as ISO Codes.
11 Look for 'has a' relationships. These can become Foreign Keys, or 'Parent-Child' relationships.
12 You need to define a Primary Key for all Tables.
For Reference Tables, use the'Code' as the Key, often with only one other field, which is the Description field.
I recommend that names of Reference Data Tables all start with 'REF_'.
For all non-Reference Data Tables, I suggest that you simply assign an Auto-increment Integer for each Primary Key.
This has some benefits, for example, it provides flexibility, and it's really the only choice for a Database supporting a Web Site.
However, it complicates life for developers, which have to use the natural key to join on, as well as the 'surrogate' key.
It also makes it possible to postpone a thorough analysis of what the actual Primary Key should be. Which means, of course, that it often never gets done.
13 Confirm the first draft of the Database design against the Sample Data.
14 Review the Business Rules with Users,(if you can find any Users).
15 Obtain from the Users some representative enquiries for the Database,
e.g. "How many Maintenance Engineers do we have on staff coming available in the next 4 weeks ?"
16 Review the Results of Steps 1) to 9) with appropriate people, such as Users, Managers,
17 Development staff, etc. and repeat until the final Database design is reached.
18 Define User Scenarios and step through them with some sample data to check that that Database supports the required functionality.

Did you see the database suggested by Rainlover in the related link?

I think you are fixed on Incoming and Outgoing tables, and that may be your big issue at the moment.
 
generally, you establish stock by summing all the transaction quantities. This is why it is easier to have ins and outs in one table. If you have two tables you have to do it twice, or have you have to manage a "union" query, which is non updateable, and this is often a problem.

effectively.
sum(qty) where date between the date range you want.

Note. I see you have a price in your stock table. If you want to value your stock usage, the whole exercise becomes inordinately complicated. quantity only is OK. Including valuation is very high end stuff.

Serial numbers is another complication. I am not sure, but from my own researches I doubt if serial numbers are actually included within an inventory system.
 

Users who are viewing this thread

Back
Top Bottom