473,797 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Inventory Report base on Query

9 New Member
Dear Experts,

Pardon me if this question already been asked before.

I have this two table as follow :
Sales
SalesID SoldDate Product Customer Qty
S-1 1-Nov-09 Candy Jason 5
S-2 3-Nov-09 Bubble gum Rudi 9
S-3 15-Nov-09 Candy Junior 3

Purchase
PurchaseID Purchase Date Product Supplier Qty
P-1 31-Oct-09 Bubble gum Germany 11
P-2 28-Oct-09 Candy Italy 10
P-3 4-Nov-09 Candy Romania 7

The questions :
1. Does it possible to add prefix in autonumber field in a table like above (P-1, S-2)? Please describe the method.
2. What should I do to create the following query result :
"
Product QtyRemain
Bubble Gum 2
Candy 9
"
The idea is if I input certain product in a combo box, I could get information for the remaing stock.

3. What should I do to create the following report result :
"
Initial Date : 1-Nov-2009
Final Date : 30 Nov-2009

Product : Candy

Date ID Customer/Supplier QtyIn QtyOut Balance
1-Nov-09 Initial Stock 0 0 10

1-Nov-09 S-1 Jason 0 5 5
4-Nov-09 P-3 Romania 7 0 12
15-Nov-09 S-3 Junior 0 3 9

30-Nov-09 Final Stock 0 0 9
"

What kind of query needed?
Is there any formulas or equation for the report?

I saw this kind of report in my office application, unfortunately it use Visual Basic as a final program.

Please help me on this case with a simplify word.
Regards,
Eko
Nov 4 '09 #1
2 2248
ChipR
1,287 Recognized Expert Top Contributor
First, create two totals queries; one for total sold, and one for total purchased. Group by Product and Sum on Qty. You can then easily restrict them by date.
Nov 4 '09 #2
MMcCarthy
14,534 Recognized Expert Moderator MVP
Part one of your question about prefixes on autonumbers. You cannot store prefixes but you can get them to display.

If you put the following into the format property of the PurchaseID field then it will display as you want.

"P-"#

Mary
Nov 5 '09 #3

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

Similar topics

8
7592
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I want them to do as little as possible when they run their reports. I have a crosstab query that displays usage of items for each month. It looks pretty much like this: ITEM DESC UM 12/02 1/03 2/03 3/03 ...ETC. 1 Solution ...
1
2640
by: Melissa | last post by:
Products appear on multiple orders in a batch of orders. I created a totals query with the fields, ProductID and SumOfQuantity. I have a TblProduct table of products with the fields ProductID, Inventory, and other fields not relevant here. My intent was to join the query and the table on the ProductID fields in an update query to update Inventory by - . The update query turned out to be not updateable. I need ideas on another approach...
2
3143
by: DaveDiego | last post by:
I'm building a report that has a count of cases for employees. I have separate queries that count, OpenCases, NewCases, TotalCases, Etc. I would like to put all those counts into a record for each EmpID then create a report from that table. Is there some online examples on now to update tables from queries?
14
1714
by: pietlinden | last post by:
Hi, Stupid question, but here goes. Someone wants me to design a database to keep track of fuel deliveries and orders/shipments. Essentially, he'll purchase fuel from some supplier and then resell it. I'm assuming this is a generic product, so I would have something like a debit/credit system. Deliveries increase stock and decrease cash, and sales do the opposite. So is this as simple as,,,
3
18721
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however, working with complex reports is tricky Assumption: Reader of this article have basic knowledge of creating data reports. Creating a Parent-Child Command and create a DataReport Suppose we have a database called company with two tables ...
4
2854
Sandboxer
by: Sandboxer | last post by:
I want to be able to program Access to provide for me, by individual day, what my contract obligations are to my customers. Will Access recognize all the individual days in between a date range (simply a "from" date and a "to" date)? Additionally, I need to delivery a specific quantity of product when the customer's inventory is within about parameter levels. EXAMPLE: "During the Date Range January 1, 2010 through April 30, 2010 when...
3
4489
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 of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory, the additional attribute, and the restocking fee. Here is my Inventory program from 1 to 3: package...
8
5923
by: Paul H | last post by:
I want to base a form on a crosstab query. The query shows statistics for a user defined period. The column headings will look something like this: ClientID Month01 Month02 Month03 etc.. So if the user selects 3 months in the criteria form, there will be 3 (month) column headings, if he selects 6 months, the will be 6 headings.
6
1612
by: Steve | last post by:
I have a 2 unmatched queries Table1_view (records in table1 not in table2) Table2_view (records in table2 not in table1) Both table contain fields ReportID ReportName ReportOwner In_Table1 (True or False) In_Table2 (True or False)
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.