473,325 Members | 2,608 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,325 software developers and data experts.

Inventory History Report w/ Balances

Hello,
I am trying to create a report that displays balance impacting
inventory transactions. I can easily pull the current on-hand balance
in one query and the transaction history in another query. However, I
am struggling with putting these 2 queries together for a report that
looks like this:

PartNum TransDate Transaction Qty CurrentBalance PrevBal
ABC 11/01/05 Shipment 5 50 55
ABC 10/31/05 Receipt 20 55 35
ABC 10/28/05 InvAdj -3 35 38
ABC 10/15/05 Receipt 10 38 28
ABC 10/14/05 Shipment 10 28 38
ABC 10/10/05 Receipt 30 38 8
Obviously the PrevBal is the same as the CurrentBalance from the
previous transaction. I want this report to calculate backward into
history because all I have is the current balance and the historical
transactions.

Any help is appreciated.

Thanks,
rxfrenc

Nov 13 '05 #1
1 2432
In a report, you only need the opening balance to be calculated. Then use a
Running Sum to to the rest.

Example.
1. Put a text box in the Report Header section to get the opening balance
for the report. Its Control Source would probably be a DSum() expression
that gets the opening balance, or whatever you use. So properties:
Control Source: =DSum(...
Name: txtOpenBalance
Format: General Number

2. In the Detail section of your report, add the Qty field as a text box a
2nd time. Properites:
Control Source: Qty
Name: txtQtyRS
Running Sum: Over All
Visible: No

3. Set the Control Source of your CurrentBalance text box to:
=[txtOpeningBalance] + [txtQtyRS]

4. Set the Control Source of your PrevBal text box to:
=[txtOpeningBalance] + [txtQtyRS] - [Qty]

If you did have to do this task in a query only, it would be much less
efficient, but you could use a subquery to calculate the previous or
balance. If subqueries are new, see:
http://support.microsoft.com/?id=209066

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<rx*****@qwest.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hello,
I am trying to create a report that displays balance impacting
inventory transactions. I can easily pull the current on-hand balance
in one query and the transaction history in another query. However, I
am struggling with putting these 2 queries together for a report that
looks like this:

PartNum TransDate Transaction Qty CurrentBalance PrevBal
ABC 11/01/05 Shipment 5 50 55
ABC 10/31/05 Receipt 20 55 35
ABC 10/28/05 InvAdj -3 35 38
ABC 10/15/05 Receipt 10 38 28
ABC 10/14/05 Shipment 10 28 38
ABC 10/10/05 Receipt 30 38 8
Obviously the PrevBal is the same as the CurrentBalance from the
previous transaction. I want this report to calculate backward into
history because all I have is the current balance and the historical
transactions.

Any help is appreciated.

Thanks,
rxfrenc

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Norma | last post by:
I hope that someone will be able to help with this problem. It is probably an easy fix for mose of you so bear with me... I have 2 tables for this. One has item # and InventoryAmount. The other...
2
by: Alpha | last post by:
I have a C# program that user would select several search criteria and then outputs to the Crystal Report. A message is output to user if no matching record is found. In my code I also clear,...
14
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...
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...
71
Cintury
by: Cintury | last post by:
Hello I am new to this forum. I am using Microsoft Access 2003 and Windows XP 2002 ver. I have 2 questions: 1) Is there always a substantial amount of visual basic coding to create a report in...
5
patjones
by: patjones | last post by:
Hi: I have a table in my Access database, "tblWC", which contains a field called "fldTrackingStatus". Furthermore, I have a report "rptTrackingReport" which is based on tblWC (using an SQL query...
8
blyxx86
by: blyxx86 | last post by:
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...
3
by: thechazm | last post by:
Hello Everyone again, I have hit a brick wall and was wondering if someone could shed some light on my problem. So what I am trying to do is to create a table that stores a weekly snapshot of...
0
by: vamsioracle | last post by:
Hi All I have a discoverer report already registeted in apps (employee leave balances). Now my client wants to rename the same report as " employee personal leave balances. Now i logged in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.