473,386 Members | 1,621 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.

Running Sum (Complex) with Variables

9
I am working in Access 2007.

The following thread is interesting, although my problem is more complex ie http://bytes.com/topic/access/answers/828972-complex-running-totals-ms-access-2003-query .

I will modify my problem to suit this one as they are comparable. Therefore I have a table recording the time created, contributions and interest rate per transaction. I need to know the running balance on a transaction for transaction basis.

Problem 1: My Date Field includes year, month, day and time. The date value is not sequential, in other words a record can be added at any given moment, although the time is unique. I have solved the problem by creating a ‘Auto Number Running Sum’ – Is this correct.

Problem2: Assume I have a field called Rate which gives the interest rate for that record. This interest rate fluctuates.

The AutoQuery Example: QtyContrAutoNo -
Auto DateCreated Contr. Rate
1 2011/01/27 01:27:50 PM $100 0
2 2011/02/02 03:05:33 PM $125 5
3 2011/02/05 02:22:30 PM $150 17
4 2011/03/05 04:59:50 PM $175 13

The Second Query Result:
Auto DateCreated Contr. BalancePerRecord
1 2011/01/27 01:27:50PM $100 $100
2 2011/02/02 03:05:33PM $125 $230 [which is (100*1.05)+125]
3 2011/02/05 02:22:30PM $150 $419.10 [which is (230*1.17)+150]
4 2011/03/05 04:59:50PM $175 $648.58 [which is (419.1*1.13)+175]

I am a novice programmer and I learn by example. After many days searching the web eg. Running Sum, DSum, DLookup and Sub queries – none of the examples carry the balance over to be used in the next record query calculation. Until I found this excellent tread. Now I need to understand the more complex calculation on my problem.
Mar 15 '11 #1
0 1105

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

Similar topics

3
by: Artco News | last post by:
How to get Windows XP Server(where PHP Server is running) environment variables? I use the echo $_ENV seem to not working. The same for any other environment variables. I'm running PHP-4.3.4...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
7
by: Alan Holloway | last post by:
Hi all, Firstly thanks for your golden insight on my earlier post re bitwise operations. I now have another question! I've just been reading the excellent Peter van der Linden excerpt ...
12
by: vj | last post by:
Hi! I have a piece of code (shown below) involving complex numbers. The code is not running and giving error ("Invalid floating point operation" and "SQRT:Domain error"). I would be very...
4
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
7
by: Tina | last post by:
Dear all, I'm looking for a routine which calculates the Gamma Function for a complex valued variable. I'm using #include <complex> to work with complex numbers. I define a complex number...
55
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
1
by: =?Utf-8?B?QXZp?= | last post by:
Hi I have an interesting issue, I hope someone can shead light on: I have a 2 server "web farm" with a web app that produces image files. To ensure synchronization of content on both machines,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.