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

Programming an Inventory Bin Card

3
I use MS-Access 2010 in Windows-7 and I want to program a Bin Card which has the following fields (just as in a Bank Statement):
1. On the first line will be 'Opening Balance'
2. On the next line is: "Qty_Received"....."Qty_issued"....."Balance"
3.More entries are added of quantities received and issued during the month.
My problem is how to program an accurate running balance.

Would be most grateful for any help. Thanks.
Dec 1 '12 #1
6 3623
NeoPa
32,556 Expert Mod 16PB
Running balances (or Running Sums) are handled in Reports. They are not handled in queries.

I suggest you design your query with the basic information in it per record, then use it in a report where one or more controls have the Running Sum property set to Yes.
Dec 1 '12 #2
silbon
3
I am aware that running sum property is available in reports. But this still does not solve my problem which starts with an opening balance and on the next line it is included to arrive at a "line balance" comprising of opening balance + Received - Issued. On the third line and so forth it is the previous line balance + Received - Issued.
If you could help me to translate this into MS-Access code, it would be much appreciated. I am sending an attachment of the Bin Card. Thanks for your help.
Attached Files
File Type: pdf Bincard.pdf (6.1 KB, 408 views)
Dec 1 '12 #3
NeoPa
32,556 Expert Mod 16PB
I can't help much ATM as I have no understanding of what the opening balance pertains to or how it is stored. I have very little appreciation also, of the objects you're managing. Hence, the best I can do without a better explanation of what you're working with, is to introduce you to the concepts which it may help you to explore. Had I known from your question, that you already understood about the Running Sum property, then I wouldn't have introduced it of course.

Working from details on a web page is necessarily going to be working in the dark to some extent. How much info there is to work with depends on the question. Currently there is too litle information to look at providing answers.
Dec 1 '12 #4
silbon
3
As displayed in the BINCARD.PDF sent yesterday, this is a parent and child relationship in MS-Access 2010. The fields in the upper section(or Main Form) are from the the header or parent file which includes the opening Inventory balance for an item. Various transaction entries for this item are displayed in the lower section(sub-form/child file). The two files are linked by a relationship(one to many) indexed on Document Number. Now since the opening balance is displayed from the header file this figure has to be taken into account when displaying the line balance in the first transaction entry in the sub-form. For all subsequent transaction entries the figure in the previous line balance is taken into account. The method is the same as a Bank Account Statement. I need to know how to program this in MS-ACCESS. Thanks.
Dec 2 '12 #5
zmbd
5,501 Expert Mod 4TB
Silbon,
And now we get into the crux of the matter... please show your work and maybe tell us all of the details of your DB?

You start out asking about what appears to be a simple running balance.
Then you tweak it with the balance forward.
Then you post a PDF... no real information or details.
Then you finally give us some more information... tweaking the question yet again.

One solution.
Running sum.
Two unbounds
One calcs the running total in the detail as one would expect
One subs the running total from the BF in the parent
Do conditional check in the second if needed
You can then store the final calc in the table at close.

You could do this in just one field; however, I like to see the ganular level for trouble shooting and it's easy enough to hide the control you don't want seen.

Now, while were at it, please understand Bytes is not a code writing or homework service... instead, we're a group of unpaid volunteers that enjoy helping people thru the rough spots in their projects.
Dec 2 '12 #6
NeoPa
32,556 Expert Mod 16PB
Z has made most of the points I would have Silbon. I would just like to emphasize, for any future questions you may have here, that what you came up with after three posts and some prompting is the bare minimum that should have been in the first post. It could be laid out more clearly but it does at least have all the pertinent information. You need to understand that we aren't here to spend time eliciting from you all the details that you, as an intelligent adult working in databases, should know are needed.

As for your question, it seems that Running Sum isn't even required here (If I read the PDF correctly). You would need a Header and Footer for the Part. In the Header you would show the raw value from the Part table (The Brought Forward Balance). In the Detail you would simply show the value for each transaction. No Running Sum. In the Footer you would have two controls :
  1. To sum the values from the Transactions. Use a formula =Sum([TranValue].
  2. To show the new total. Use a formula =[B/F] + [TranSum] (Where [B/F] comes from the Part table and [TranSum] is the field from point #1).
Dec 2 '12 #7

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

Similar topics

23
by: JC | last post by:
I am very new to programming and learning on my own. Why do I keep getting duplicate values using this code? I want to shuffle a deck of 52 cards. The logic seems right to me. Randomize For...
34
by: Volker Hetzer | last post by:
Hi! I've done lots of programming for CAD, which was basically C/C++ and tcl/tk. Now, we are thinking about introducing more web based tools, programming them ourselves and right now the toolchain...
5
by: gregork | last post by:
I have painstakingly created an excel 2000 workbook for the very complex recipes I have to formulate. I have 2 sheets- 1 for configuring the recipe and 1 that is like an inventory of all the raw...
109
by: zaidalin79 | last post by:
I have a java class that goes for another week or so, and I am going to fail if I can't figure out this simple program. I can't get anything to compile to at least get a few points... Here are the...
0
by: south622 | last post by:
I'm taking a beginning Java course and I'm stuck in week eight of a nine week course. If anyone could help me I would greatly appreciate it. This assignment was due yesterday and each day I go past...
3
by: Paul | last post by:
Looking for recommendations on a programming language for a web application. I am soliciting recommendations on a programming language for a web application described below. Actually, it is not...
11
by: Paul Furman | last post by:
I'm setting up credit card payment through authorize.net and they have the option to send a POST string back to my site once complete. I'm not sure how to proceed. They don't have much to read...
4
by: xNellx | last post by:
Hello I'm new to C langauge I had a project about blackjack programming. but I have no IDEA, what to do..;; Could you please help me out to write down this simple program? (Biggest...
11
by: hamiltongreg | last post by:
I am new to Java and am having problems getting my program to compile correctly. My assignment is as follows; Choose a product that lends itself to an inventory (for example, products at your...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.