473,395 Members | 1,756 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,395 software developers and data experts.

Inventory System Reporting

blyxx86
256 100+
Hey everyone out there...

I'm not too sure where to start with this one, so... Let me see if I can put some verbs to the flame.

I am need of some guidance when it comes to inventory control using an access database. (Or any database really.)

I am able to keep systemic balances using full cycle counts, receipts and shipments and adjustments. These numbers are accurate for what I use them for, but I want to report based on them and I'm not sure how to do that.

What I'm trying to do requires reporting information based on the last cycle count date (stored in the database) using new cycle count information. How can I create some sort of query that would generate this information for me? I do not need guidance on how to setup a query (maybe a little help with the subquery, if any).

Also, perhaps with the knowledge in this forum someone can direct me to what would make sense to be on this inventory report. (ie. customer, product name, previous cycle count, previous cycle date, new cycle count, new cycle date, difference, etc...)

Suggestions and guidance extremely welcome. Thank you.
Nov 6 '07 #1
8 3148
Rabbit
12,516 Expert Mod 8TB
Hey everyone out there...

I'm not too sure where to start with this one, so... Let me see if I can put some verbs to the flame.

I am need of some guidance when it comes to inventory control using an access database. (Or any database really.)

I am able to keep systemic balances using full cycle counts, receipts and shipments and adjustments. These numbers are accurate for what I use them for, but I want to report based on them and I'm not sure how to do that.

What I'm trying to do requires reporting information based on the last cycle count date (stored in the database) using new cycle count information. How can I create some sort of query that would generate this information for me? I do not need guidance on how to setup a query (maybe a little help with the subquery, if any).

Also, perhaps with the knowledge in this forum someone can direct me to what would make sense to be on this inventory report. (ie. customer, product name, previous cycle count, previous cycle date, new cycle count, new cycle date, difference, etc...)

Suggestions and guidance extremely welcome. Thank you.
What's a cycle count?
Could you provide some pseudo data and the results you're looking for?
Nov 6 '07 #2
blyxx86
256 100+
Sure thing...

A cycle count, a stock take. Is basically a 'full physical count of inventory'.. Perhaps it could just be called an inventory count.

Anyways... Here is the data I have...

Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. StockTakeID; AutoNumber; PK
  3. Model; String;
  4. StockTakeDate; Date/Time;
  5. Quantity; Number;
  6.  
IE...
StockTakeID: 1
Model: PENCIL
StockTakeDate: 11/2/2007
Quantity: 100
...then...
StockTakeID: 18
Model: PENCIL
StockTakeDate: 11/7/2007
Quantity: 150

I want to somehow show that at the previous stock take that there were only 100, but there are now 150.. Showing a variance of +50 since the last stock take.

So... something like...
MODEL | Previous STDate | Previous STCount | New STDate | New STCount | Variance
PENCIL | 11/2/2007 | 100 | 11/7/2007 | 150 | +50

However I need to do this on a big scale, so a query would be helpful.

Let me know...
Nov 7 '07 #3
Rabbit
12,516 Expert Mod 8TB
So bascially you want to take the most recent stock date info and have it next to the second most recent stock date info? Have you ever used subqueries?
Nov 7 '07 #4
blyxx86
256 100+
Only just barely... I managed to make one to pull information, but how would I use this subquery to generate this kind of data?

This is the WHERE part of my main query (with sub)

WHERE (((tblRequest.RequestID) In (SELECT tblRequest.RequestID FROM tblRequest INNER JOIN tblRequestDetail ON tblRequest.RequestID = tblRequestDetail.RequestID WHERE (((tblRequestDetail.EnteredDate)=[Enter Request Date])) OR (((tblRequest.EnteredDate)=[Enter Request Date]));)));

So.. Do I understand how to use them? Yes, but only a little.
Nov 7 '07 #5
blyxx86
256 100+
So bascially you want to take the most recent stock date info and have it next to the second most recent stock date info? Have you ever used subqueries?
Yes, that is correct... I want to display the second set of information next to the current... I believe it will have something to do with a 'LAST' aggregate function, but still a lot to learn.
Nov 7 '07 #6
Rabbit
12,516 Expert Mod 8TB
This won't be exactly what you need but it should be enough to get you started:
Expand|Select|Wrap|Line Numbers
  1. SELECT x.IDField, x.MaxEventDate, (SELECT TOP 1 EventDate FROM Table1 WHERE IDField = x.IDField AND EventDate < x.EventDate ORDER BY EventDate DESC) AS PriorEventDate
  2. FROM (SELECT IDField, Max(EventDate) FROM Table1 GROUP BY IDField) AS x;
  3.  
Just think of everything after the main WHERE clause as another query that selects the most recent EventDate per IDField and that this query uses the first query as it's source.
Nov 7 '07 #7
blyxx86
256 100+
This won't be exactly what you need but it should be enough to get you started:
Expand|Select|Wrap|Line Numbers
  1. SELECT x.IDField, x.MaxEventDate, (SELECT TOP 1 EventDate FROM Table1 WHERE IDField = x.IDField AND EventDate < x.EventDate ORDER BY EventDate DESC) AS PriorEventDate
  2. FROM (SELECT IDField, Max(EventDate) FROM Table1 GROUP BY IDField) AS x;
  3.  
Just think of everything after the main WHERE clause as another query that selects the most recent EventDate per IDField and that this query uses the first query as it's source.
This kind of confused me.. I'll have to read up on subqueries some more because while I understand their simplicity, I get confused on the logic to use in them. I sort of understand, but I sort of don't. :) I'm just a walking antonym today.
Nov 10 '07 #8
Rabbit
12,516 Expert Mod 8TB
This is what it means.

Query1 - Select most recent EventDate by IDField
Expand|Select|Wrap|Line Numbers
  1. SELECT IDField, Max(EventDate)
  2. FROM Table1
  3. GROUP BY IDField;
  4.  
Query2 - Select second most recent EventDate by IDField using a subquery.
Expand|Select|Wrap|Line Numbers
  1. SELECT outerQuery.IDField, outerQuery.MaxEventDate, 
  2.  
  3. (SELECT TOP 1 innerQuery.EventDate
  4. FROM Table1 AS innerQuery
  5. WHERE innerQuery.IDField = outerQuery.IDField AND innerQuery.EventDate < outerQuery.EventDate
  6. ORDER BY innerQuery.EventDate DESC) AS PriorEventDate
  7.  
  8. FROM Query1 AS outerQuery;
  9.  
Nov 13 '07 #9

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

Similar topics

0
by: Rolan | last post by:
I know what I want to do regarding the average cost for inventory, but need some assistance to sort out some of the details to finalize an inventory table and query. Essentially, the information is...
4
nexcompac
by: nexcompac | last post by:
Ok, I posted a similar post but now need to jump back into it. Here is what I have been able to clean up. I am using textpad and jbuilder. Still getting used to the whole java world and I am...
9
by: xxplod | last post by:
I am suppose to modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including...
3
by: cblank | last post by:
I need some help if someone could help me. I know everyone is asking for help in java. But for some reason I'm the same as everyone else when it comes to programming in java. I have an inventory...
2
by: pinkf24 | last post by:
I cannot figure out how to add the following: Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform...
1
by: jcato77 | last post by:
I need help with a class project I'm working on, Below is my assignment and the code I have currently created. Assignment: Modify the Inventory Program by creating a subclass of the product class...
13
by: jcato77 | last post by:
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
2
by: blitz1989 | last post by:
Hello all, I'm new to this forum and Java and having a alot of problems understanding this language. I am working on an invetory program part 4. The assignment requirements are listed but the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.