473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Suggesting for Creating an Inventory Database with respect to datahandling

I am currently working on an inventory database for my work.

As i've progressed in developing it I have been thinking about the best method for handling the difference in input and output data to create a 'remaining inventory'

Currently my line of thinking is:
Have a form to receive input data... creating an input data table
Have a form to receive output data... creating an output data table

I can then use a query to isolate various parts (query will show all parts that start with the id '678' which I can then count) and produce a count of each for both my input and output data table

Theoretically I can subtract the count(input) from the count(output) to determine how much is leftover for storage.


Is this the best method for going about an inventory database and determine how much stock is left over after shipping parts out? Any other suggestions that may be a little cleaner would be welcome
Apr 25 '17 #1

✓ answered by PhilOfWalton

I believe the best way is to create transactions against each stock item, and then you have a complete record.

Transaction would have at least
StockID
TransDate
TransQuantity
Other info perhaps like where it was sent

Stock Balance is obviously opening balance + or - Transaction.

Phil

10 1348
NeoPa
32,556 Expert Mod 16PB
I see no reason for separate tables to handle the inputs and the outputs. They're all deltas one way or another.

That said, stock control is often handled by having deltas applied to a stock-check value. Each stock check supplies values that override all that went before, but deltas can be applied to stock-check values up to and until the next stock check.
Apr 25 '17 #2
PhilOfWalton
1,430 Expert 1GB
I believe the best way is to create transactions against each stock item, and then you have a complete record.

Transaction would have at least
StockID
TransDate
TransQuantity
Other info perhaps like where it was sent

Stock Balance is obviously opening balance + or - Transaction.

Phil
Apr 27 '17 #3
NeoPa
32,556 Expert Mod 16PB
Although stock-takes can be entered as an adjustment they can also be set up as a third type of transaction which is an absolute rather than a delta. That way a new absolute value can be added any time so finding the current situation can be done without the necessity to trawl through what may consist of many years of transactions that come in many times each day - adding up to hundreds of thousands for each item. All that's necessary in such a case is to find the latest absolute and any deltas dated after that one.

It's just a short-cut really. Not always necessary, but often more practical than the alternative.
Apr 27 '17 #4
PhilOfWalton
1,430 Expert 1GB
Bitter experience tells me a detailed audit trail has it's advantages. As a clothing manufacturer, we kept finding that stock was short. As the audit trail listed every garment sold and to which retailer, when a garment came back with a complaint, and we had never sold that particular style to that retailer, it was not difficult to establish who was doing the stealing.

The stockman & packer had a nice little racket going with one of out reps!!

Phil
Apr 27 '17 #5
NeoPa
32,556 Expert Mod 16PB
Hi Phil.

If you look closely you'll see there is no info missing from my suggested scenario.

The two differences are simply :
  1. There are extra stock adjustments where necessary.
  2. Getting the latest stock levels takes less processing of data.
It also gives the opportunity to look deeper into mismatches as soon as they occur as they are immediately highlighted.
Apr 29 '17 #6
jforbes
1,107 Expert 1GB
I've seen ERP systems with transaction adjustments both ways, relative and absolute. Relative is easier to deal with Query wise.

I remember a question like this a while back that I went and found that may be helpful: How do I store Totals in Access using VBA code
Apr 29 '17 #7
NeoPa
32,556 Expert Mod 16PB
That looks like a good link JForbes.

It's great when other experts chip in and give a different perspective on things. Thanks to both of you for contributing your experiences.
Apr 30 '17 #8
Yes thank you very much for the input.

Admittedly most of that went over my head (stock check and control) but it gives a path to try to go down if what i'm doing doesn't work.

Phil I like that idea but at the moment the database will be very basic and more or less just be a representation of the items made and moved (not much regard for where it's going).

This was why I have it set up as an input and output table which is run against a query to create a count of each item and now i'm just finding a way to subtract the values.

However if this doesn't work I will be investigating these tips! Thanks again
May 2 '17 #9
NeoPa
32,556 Expert Mod 16PB
Hi Tyler.

Let me see if I can convince you to merge your tables and to think of deltas (IE Changes.) rather than specific positive (incoming) and negative (outgoing) changes. Humans typically see them as different and opposite, but actually they are basically the same thing - a movement - they just have different directions.

Keeping two separate tables to do fundamentally the same job will only lead to complications for you. It can certainly be made to work, but why complicate your life unnecessarily?
May 2 '17 #10
zmbd
5,501 Expert Mod 4TB
TylerBennett, I've PM'd you a copy of my "toolbox" therein is a link to a tutorial site that uses an inventory management database as the tutorial. You may want to work through that tutorial in that it will help you wrap your head around database design AND you will have a functional, if somewhat basic, inventory database when done.
Bytes.com\Inbox
May 13 '17 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jerry Spence1 | last post by:
Why doesn't the following work in my ASP program? I have imported ADOX I am trying to create a temporary database on the user's PC. The example is taken from Microsoft. Dim cat As Catalog =...
4
by: DeepDiver | last post by:
I am developing an inventory database in SQL Server. I realize there are many commercial (as well as some non-commercial) inventory offerings, but my client has specific requirements that would...
6
by: mpmason14 | last post by:
I found a vbscript on vbskrypt.com that allows me to inventory the software installed on my computer and puts it in an Access database. problem: the script only finds those programs installed...
12
by: suprdad25 | last post by:
I was given an assignment to create a MS Access home inventory database that has a minimum of 5 tables. I have 7 tables (Appliances,Vehicles,Movies,Furniture,Games,Electronics, and Rooms) The...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
1
by: linktoali | last post by:
I need a demo project on inventory database system with the backend SQL server databa in VB.net
5
by: StephR | last post by:
Hello! I'm not very good in making code work for me, so I thought I would put it on here and ask for some suggestions. Here is some back ground. I have an inventory database that I can log what is...
2
by: RoaringChicken | last post by:
Hi. Vista Ultimate Access 2007 I'm developing an inventory database and have question on design. The database stores collection details. One item in the collection, one record. The design...
6
by: Amanda Shuping | last post by:
I am trying out this program for a auto inventory database, I have mostly figured out the year, make, but can not see a field to modify for models to narrow search down, can someone please help,...
2
Seth Schrock
by: Seth Schrock | last post by:
I've started thinking about creating an inventory database, which is something that I've never done before. I definitely want it to be normalized. But my question is the storing of current...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.